From 76dbcc9f1da1a660c387ff4bcae0778761d931ef Mon Sep 17 00:00:00 2001 From: Kier Palin Date: Mon, 9 Sep 2024 18:52:25 +0100 Subject: [PATCH] Fixed B button issue. --- noArcadeShieldMode.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/noArcadeShieldMode.ts b/noArcadeShieldMode.ts index ddf90b2..10e6e60 100644 --- a/noArcadeShieldMode.ts +++ b/noArcadeShieldMode.ts @@ -28,7 +28,8 @@ namespace microcode { this.uiSensorSelectState = UI_SENSOR_SELECT_STATE.ACCELERATION; this.sensorHasBeenSelected = false; - control.onEvent(DAL.DEVICE_BUTTON_EVT_DOWN, DAL.DEVICE_ID_BUTTON_A, () => { + // A Button + input.onButtonPressed(1, () => { this.dynamicSensorSelectionTriggered = false; if (this.uiMode == UI_MODE.SENSOR_SELECTION) { @@ -41,7 +42,8 @@ namespace microcode { } }) - control.onEvent(DAL.DEVICE_BUTTON_EVT_DOWN, DAL.DEVICE_ID_BUTTON_B, () => { + // B Button + input.onButtonPressed(2, () => { this.dynamicSensorSelectionTriggered = false; this.sensorHasBeenSelected = false