Skip to content

Commit

Permalink
use A3 and A4 as USB HID buttons 15 and 16 (OpenStickCommunity#1069)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsstephan authored Jun 17, 2024
1 parent e7d05ef commit 93974ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drivers/hid/HIDDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ void HIDDriver::process(Gamepad * gamepad, uint8_t * outBuffer) {
| (gamepad->pressedR3() ? GAMEPAD_MASK_R3 : 0)
| (gamepad->pressedA1() ? GAMEPAD_MASK_A1 : 0)
| (gamepad->pressedA2() ? GAMEPAD_MASK_A2 : 0)
// buttons 15 and 16 are reserved for future expansion
| (gamepad->pressedA3() ? GAMEPAD_MASK_A3 : 0)
| (gamepad->pressedA4() ? GAMEPAD_MASK_A4 : 0)
| (gamepad->pressedUp() ? GAMEPAD_MASK_DU : 0)
| (gamepad->pressedDown() ? GAMEPAD_MASK_DD : 0)
| (gamepad->pressedLeft() ? GAMEPAD_MASK_DL : 0)
Expand Down

0 comments on commit 93974ac

Please sign in to comment.