mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
select pause buttons after mouse move only
This commit is contained in:
parent
08e15d63c4
commit
998f9c090d
@ -263,6 +263,14 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private class Button : DialogButton
|
||||
{
|
||||
protected override bool OnHover(InputState state) => true;
|
||||
|
||||
protected override bool OnMouseMove(InputState state)
|
||||
{
|
||||
Selected.Value = true;
|
||||
return base.OnMouseMove(state);
|
||||
}
|
||||
|
||||
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
|
||||
{
|
||||
if (args.Repeat || args.Key != Key.Enter || !Selected)
|
||||
|
Loading…
Reference in New Issue
Block a user