Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Fixed B button issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
KierPalin committed Sep 9, 2024
1 parent 3cc49c6 commit 76dbcc9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions noArcadeShieldMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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

Expand Down

0 comments on commit 76dbcc9

Please sign in to comment.