1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 15:27:20 +08:00

Handle released for safety

This commit is contained in:
Dean Herbert 2019-03-24 12:19:09 +09:00
parent 1e0027e4f2
commit 11b474e194

View File

@ -243,12 +243,22 @@ namespace osu.Game.Screens.Play
case GlobalAction.Select:
SelectAction.Invoke();
return true;
default:
return false;
}
return false;
}
public bool OnReleased(GlobalAction action) => false;
public bool OnReleased(GlobalAction action)
{
switch (action)
{
case GlobalAction.Back:
case GlobalAction.Select:
return true;
}
return false;
}
private void buttonSelectionChanged(DialogButton button, bool isSelected)
{