Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
Change input mode selection buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
FeralAI committed Oct 19, 2021
1 parent 320356e commit bbfaf4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ If you do not have a dedicated Home button, you can activate it via the **`BACK

### Input Modes

To change the input mode, **hold one of the following buttons as the controller is plugged in:**
To change the input mode, **hold one of the following buttons as the controller is plugged in (Arcade mapping in parentheses):**

* **`RS`** for DirectInput/PS3
* **`BACK`** for Nintendo Switch
* **`START`** for XInput
* **`X (P1)`** for DirectInput/PS3
* **`A (K1)`** for Nintendo Switch
* **`B (K2)`** for XInput

Input mode is saved across power cycles.

Expand Down
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ void setup()
// Check for input mode override
gamepad.read();
InputMode newInputMode = gamepad.options.inputMode;
if (gamepad.pressedR3())
if (gamepad.pressedB3())
newInputMode = INPUT_MODE_HID;
else if (gamepad.pressedS1())
else if (gamepad.pressedB1())
newInputMode = INPUT_MODE_SWITCH;
else if (gamepad.pressedS2())
else if (gamepad.pressedB2())
newInputMode = INPUT_MODE_XINPUT;

if (newInputMode != gamepad.options.inputMode)
Expand Down

0 comments on commit bbfaf4e

Please sign in to comment.