Handle released for safety

This commit is contained in:
Dean Herbert 2019-03-24 12:19:09 +09:00
parent 1e0027e4f2
commit 11b474e194
1 changed files with 13 additions and 3 deletions

View File

@ -243,12 +243,22 @@ public bool OnPressed(GlobalAction action)
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)
{