Skip to content

Commit

Permalink
Allow the Joy2 button to cancel binding a key in the controls menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nashmuhandes authored and coelckers committed Feb 2, 2024
1 parent 481b2c1 commit cf4841c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/engine/ui/menu/optionmenuitems.zs
Expand Up @@ -467,7 +467,7 @@ class EnterKey : Menu
menuactive = Menu.On;
SetMenuMessage(0);
Close();
mParentMenu.MenuEvent((ev.KeyScan == InputEvent.KEY_ESCAPE)? Menu.MKEY_Abort : Menu.MKEY_Input, 0);
mParentMenu.MenuEvent((ev.KeyScan == InputEvent.KEY_ESCAPE) || (ev.KeyScan == InputEvent.KEY_JOY2) ? Menu.MKEY_Abort : Menu.MKEY_Input, 0);
return true;
}
return false;
Expand Down

0 comments on commit cf4841c

Please sign in to comment.