Skip to content

Commit 3336aa9

Browse files
committed
Fixed the paddle mapping for Steam Controllers
Fixes #14380
1 parent b695e5c commit 3336aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joystick/SDL_gamepad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ static GamepadMapping_t *SDL_CreateMappingForHIDAPIGamepad(SDL_GUID guid)
12511251

12521252
if (SDL_IsJoystickSteamController(vendor, product)) {
12531253
// Steam controllers have 2 back paddle buttons
1254-
SDL_strlcat(mapping_string, "paddle1:b12,paddle2:b11,", sizeof(mapping_string));
1254+
SDL_strlcat(mapping_string, "paddle1:b11,paddle2:b12,", sizeof(mapping_string));
12551255
} else if (SDL_IsJoystickNintendoSwitchPro(vendor, product) ||
12561256
SDL_IsJoystickNintendoSwitchProInputOnly(vendor, product)) {
12571257
// Nintendo Switch Pro controllers have a screenshot button

0 commit comments

Comments
 (0)