Add back ability to hold down confirm and cancel buttons

pull/68/head
Flashfyre 2024-04-09 09:14:11 -04:00
parent 3874597345
commit ec51ba7417
1 changed files with 6 additions and 3 deletions

View File

@ -1083,12 +1083,15 @@ export default class BattleScene extends SceneBase {
inputSuccess = this.ui.processInput(Button.RIGHT); inputSuccess = this.ui.processInput(Button.RIGHT);
vibrationLength = 5; vibrationLength = 5;
this.setLastProcessedMovementTime(Button.RIGHT) this.setLastProcessedMovementTime(Button.RIGHT)
} else if (this.buttonJustPressed(Button.SUBMIT)) { } else if (this.buttonJustPressed(Button.SUBMIT) || this.repeatInputDurationJustPassed(Button.SUBMIT)) {
inputSuccess = this.ui.processInput(Button.SUBMIT) || this.ui.processInput(Button.ACTION); inputSuccess = this.ui.processInput(Button.SUBMIT) || this.ui.processInput(Button.ACTION);
} else if (this.buttonJustPressed(Button.ACTION)) { this.setLastProcessedMovementTime(Button.SUBMIT);
} else if (this.buttonJustPressed(Button.ACTION) || this.repeatInputDurationJustPassed(Button.ACTION)) {
inputSuccess = this.ui.processInput(Button.ACTION); inputSuccess = this.ui.processInput(Button.ACTION);
} else if (this.buttonJustPressed(Button.CANCEL)) { this.setLastProcessedMovementTime(Button.ACTION);
} else if (this.buttonJustPressed(Button.CANCEL)|| this.repeatInputDurationJustPassed(Button.CANCEL)) {
inputSuccess = this.ui.processInput(Button.CANCEL); inputSuccess = this.ui.processInput(Button.CANCEL);
this.setLastProcessedMovementTime(Button.CANCEL);
} else if (this.buttonJustPressed(Button.MENU)) { } else if (this.buttonJustPressed(Button.MENU)) {
switch (this.ui?.getMode()) { switch (this.ui?.getMode()) {
case Mode.MESSAGE: case Mode.MESSAGE: