Ver Fonte

Fixed the paddle mapping for Steam Controllers

Fixes https://github.com/libsdl-org/SDL/issues/14380

(cherry picked from commit 3336aa95f12df4f15150e860b310beac55be06a4)
Sam Lantinga há 4 meses atrás
pai
commit
1bfa90cb1f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/joystick/SDL_gamepad.c

+ 1 - 1
src/joystick/SDL_gamepad.c

@@ -822,7 +822,7 @@ static GamepadMapping_t *SDL_CreateMappingForHIDAPIGamepad(SDL_GUID guid)
 
         if (SDL_IsJoystickSteamController(vendor, product)) {
             // Steam controllers have 2 back paddle buttons
-            SDL_strlcat(mapping_string, "paddle1:b12,paddle2:b11,", sizeof(mapping_string));
+            SDL_strlcat(mapping_string, "paddle1:b11,paddle2:b12,", sizeof(mapping_string));
         } else if (SDL_IsJoystickNintendoSwitchPro(vendor, product) ||
                    SDL_IsJoystickNintendoSwitchProInputOnly(vendor, product)) {
             // Nintendo Switch Pro controllers have a screenshot button