1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

select pause buttons after mouse move only

This commit is contained in:
FreezyLemon 2017-12-28 01:56:10 +01:00
parent 08e15d63c4
commit 998f9c090d

View File

@ -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)