Fixed mapping BTN_TR2 to right trigger

main
Sam Lantinga 2023-07-08 18:18:22 -07:00
parent 0e4165e54b
commit ea60da5b94
1 changed files with 1 additions and 1 deletions

View File

@ -2386,7 +2386,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;