Skip to content

Commit

Permalink
Merge pull request #150 from shiumano/alternate-keys
Browse files Browse the repository at this point in the history
Convert arrows to symbols
  • Loading branch information
Artemis-chan authored Jul 26, 2024
2 parents 0d7b863 + f04bf7e commit 7e50a40
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,15 @@ public virtual bool OnPressed(KeyBindingPressEvent<DivaAction> e)
if (Judged)
return false;

validPress = e.Action == validAction;
var action = e.Action switch
{
DivaAction.Right => DivaAction.Circle,
DivaAction.Down => DivaAction.Cross,
DivaAction.Up => DivaAction.Triangle,
DivaAction.Left => DivaAction.Square,
_ => e.Action,
};
validPress = action == validAction;
pressed = true;

return true;
Expand Down

0 comments on commit 7e50a40

Please sign in to comment.