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:
parent
1e0027e4f2
commit
11b474e194
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user