mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 20:42:55 +08:00
Update test scenes which should not handle key repeat
This commit is contained in:
parent
7599efac30
commit
d7b178ea37
@ -83,6 +83,9 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
public bool OnPressed(KeyBindingPressEvent<TestAction> e)
|
public bool OnPressed(KeyBindingPressEvent<TestAction> e)
|
||||||
{
|
{
|
||||||
|
if (e.Repeat)
|
||||||
|
return false;
|
||||||
|
|
||||||
ReceivedAction = e.Action == TestAction.Down;
|
ReceivedAction = e.Action == TestAction.Down;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -231,6 +231,9 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
public bool OnPressed(KeyBindingPressEvent<TestAction> e)
|
public bool OnPressed(KeyBindingPressEvent<TestAction> e)
|
||||||
{
|
{
|
||||||
|
if (e.Repeat)
|
||||||
|
return false;
|
||||||
|
|
||||||
box.Colour = Color4.White;
|
box.Colour = Color4.White;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -164,6 +164,9 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
public bool OnPressed(KeyBindingPressEvent<TestAction> e)
|
public bool OnPressed(KeyBindingPressEvent<TestAction> e)
|
||||||
{
|
{
|
||||||
|
if (e.Repeat)
|
||||||
|
return false;
|
||||||
|
|
||||||
box.Colour = Color4.White;
|
box.Colour = Color4.White;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -283,6 +283,9 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
public bool OnPressed(KeyBindingPressEvent<TestAction> e)
|
public bool OnPressed(KeyBindingPressEvent<TestAction> e)
|
||||||
{
|
{
|
||||||
|
if (e.Repeat)
|
||||||
|
return false;
|
||||||
|
|
||||||
box.Colour = Color4.White;
|
box.Colour = Color4.White;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user