Skip to content

Commit

Permalink
Fixed mapping BTN_TR2 to right trigger
Browse files Browse the repository at this point in the history
(cherry picked from commit ea60da5)
(cherry picked from commit 4b1dd54)
  • Loading branch information
slouken committed Jul 9, 2023
1 parent bb3997d commit a614d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/linux/SDL_sysjoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ static SDL_bool LINUX_JoystickGetGamepadMapping(int device_index, SDL_GamepadMap
#endif
}

if (!(mapped & MAPPED_TRIGGER_LEFT) && joystick->hwdata->has_key[BTN_TR2]) {
if (!(mapped & MAPPED_TRIGGER_RIGHT) && joystick->hwdata->has_key[BTN_TR2]) {
out->righttrigger.kind = EMappingKind_Button;
out->righttrigger.target = joystick->hwdata->key_map[BTN_TR2];
mapped |= MAPPED_TRIGGER_RIGHT;
Expand Down

0 comments on commit a614d8f

Please sign in to comment.