Fixed mapping BTN_TR2 to right trigger
(cherry picked from commit ea60da5b94
)
This commit is contained in:
parent
acdde129bb
commit
4b1dd54a56
1 changed files with 1 additions and 1 deletions
|
@ -2026,7 +2026,7 @@ static SDL_bool LINUX_JoystickGetGamepadMapping(int device_index, SDL_GamepadMap
|
||||||
#endif
|
#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.kind = EMappingKind_Button;
|
||||||
out->righttrigger.target = joystick->hwdata->key_map[BTN_TR2];
|
out->righttrigger.target = joystick->hwdata->key_map[BTN_TR2];
|
||||||
mapped |= MAPPED_TRIGGER_RIGHT;
|
mapped |= MAPPED_TRIGGER_RIGHT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue