mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
select pause buttons after mouse move only
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user