mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-31 13:17:21 +00:00
Fix issue with mobile and submit action
This commit is contained in:
parent
c0aac06fab
commit
6558de01c4
@ -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],
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user