Fix issue with mobile and submit action

pull/14/head
Flashfyre 2024-01-02 17:31:44 -05:00
parent c0aac06fab
commit 6558de01c4
2 changed files with 3 additions and 1 deletions

View File

@ -567,7 +567,7 @@ export default class BattleScene extends Phaser.Scene {
[Button.LEFT]: [keyCodes.LEFT, keyCodes.A],
[Button.RIGHT]: [keyCodes.RIGHT, keyCodes.D],
[Button.SUBMIT]: [keyCodes.ENTER],
[Button.ACTION]: [keyCodes.ENTER, keyCodes.SPACE, keyCodes.Z],
[Button.ACTION]: [keyCodes.SPACE, keyCodes.ENTER, keyCodes.Z],
[Button.CANCEL]: [keyCodes.BACKSPACE, keyCodes.X],
[Button.MENU]: [keyCodes.ESC, keyCodes.M],
[Button.CYCLE_SHINY]: [keyCodes.R],

View File

@ -357,6 +357,8 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
if (button === Button.SUBMIT) {
if (this.tryStart(true))
success = true;
else
error = true;
} else if (this.startCursorObj.visible) {
switch (button) {
case Button.ACTION: