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.LEFT]: [keyCodes.LEFT, keyCodes.A],
[Button.RIGHT]: [keyCodes.RIGHT, keyCodes.D], [Button.RIGHT]: [keyCodes.RIGHT, keyCodes.D],
[Button.SUBMIT]: [keyCodes.ENTER], [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.CANCEL]: [keyCodes.BACKSPACE, keyCodes.X],
[Button.MENU]: [keyCodes.ESC, keyCodes.M], [Button.MENU]: [keyCodes.ESC, keyCodes.M],
[Button.CYCLE_SHINY]: [keyCodes.R], [Button.CYCLE_SHINY]: [keyCodes.R],

View File

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