From 6b99eda84a3e5738656aedbc767e2f399f2c7343 Mon Sep 17 00:00:00 2001 From: Greenlamp2 <44787002+Greenlamp2@users.noreply.github.com> Date: Wed, 29 May 2024 15:33:36 +0200 Subject: [PATCH] small detail in ui-inputs, was still working but not whitelisting keys, not sure if still needed though (#1560) --- src/ui-inputs.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ui-inputs.ts b/src/ui-inputs.ts index 35d649dc532..1151d4dd181 100644 --- a/src/ui-inputs.ts +++ b/src/ui-inputs.ts @@ -57,16 +57,16 @@ export class UiInputs { [Button.LEFT]: () => this.buttonDirection(Button.LEFT), [Button.RIGHT]: () => this.buttonDirection(Button.RIGHT), [Button.SUBMIT]: () => this.buttonTouch(), - [Button.ACTION]: () => this.buttonDirection(Button.ACTION), - [Button.CANCEL]: () => this.buttonDirection(Button.CANCEL), + [Button.ACTION]: () => this.buttonAb(Button.ACTION), + [Button.CANCEL]: () => this.buttonAb(Button.CANCEL), [Button.MENU]: () => this.buttonMenu(), [Button.STATS]: () => this.buttonStats(true), - [Button.CYCLE_SHINY]: () => this.buttonDirection(Button.CYCLE_SHINY), - [Button.CYCLE_FORM]: () => this.buttonDirection(Button.CYCLE_FORM), - [Button.CYCLE_GENDER]: () => this.buttonDirection(Button.CYCLE_GENDER), - [Button.CYCLE_ABILITY]: () => this.buttonDirection(Button.CYCLE_ABILITY), - [Button.CYCLE_NATURE]: () => this.buttonDirection(Button.CYCLE_NATURE), - [Button.CYCLE_VARIANT]: () => this.buttonDirection(Button.CYCLE_VARIANT), + [Button.CYCLE_SHINY]: () => this.buttonCycleOption(Button.CYCLE_SHINY), + [Button.CYCLE_FORM]: () => this.buttonCycleOption(Button.CYCLE_FORM), + [Button.CYCLE_GENDER]: () => this.buttonCycleOption(Button.CYCLE_GENDER), + [Button.CYCLE_ABILITY]: () => this.buttonCycleOption(Button.CYCLE_ABILITY), + [Button.CYCLE_NATURE]: () => this.buttonCycleOption(Button.CYCLE_NATURE), + [Button.CYCLE_VARIANT]: () => this.buttonCycleOption(Button.CYCLE_VARIANT), [Button.SPEED_UP]: () => this.buttonSpeedChange(), [Button.SLOW_DOWN]: () => this.buttonSpeedChange(false), };