mirror of
https://github.com/ppy/osu
synced 2025-02-07 22:01:59 +00:00
Merge pull request #12460 from bdach/fix-idle-tracker-assumption
This commit is contained in:
commit
1832f624e2
@ -81,6 +81,13 @@ namespace osu.Game.Tests.Visual.Components
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestMovement()
|
public void TestMovement()
|
||||||
{
|
{
|
||||||
|
checkIdleStatus(1, false);
|
||||||
|
checkIdleStatus(2, false);
|
||||||
|
checkIdleStatus(3, false);
|
||||||
|
checkIdleStatus(4, false);
|
||||||
|
|
||||||
|
waitForAllIdle();
|
||||||
|
|
||||||
AddStep("move to top right", () => InputManager.MoveMouseTo(box2));
|
AddStep("move to top right", () => InputManager.MoveMouseTo(box2));
|
||||||
|
|
||||||
checkIdleStatus(1, true);
|
checkIdleStatus(1, true);
|
||||||
@ -102,6 +109,8 @@ namespace osu.Game.Tests.Visual.Components
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestTimings()
|
public void TestTimings()
|
||||||
{
|
{
|
||||||
|
waitForAllIdle();
|
||||||
|
|
||||||
AddStep("move to centre", () => InputManager.MoveMouseTo(Content));
|
AddStep("move to centre", () => InputManager.MoveMouseTo(Content));
|
||||||
|
|
||||||
checkIdleStatus(1, false);
|
checkIdleStatus(1, false);
|
||||||
|
@ -42,6 +42,12 @@ namespace osu.Game.Input
|
|||||||
RelativeSizeAxes = Axes.Both;
|
RelativeSizeAxes = Axes.Both;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
updateLastInteractionTime();
|
||||||
|
}
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
Loading…
Reference in New Issue
Block a user