Fix issue with mobile and submit action
parent
c0aac06fab
commit
6558de01c4
|
@ -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],
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue