Skip to content

Commit

Permalink
windows.gaming.input: Fix inverted start / select gamepad buttons.
Browse files Browse the repository at this point in the history
CW-Bug-Id: #22968
  • Loading branch information
rbernon committed Nov 9, 2023
1 parent 939fe52 commit 1d57f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlls/windows.gaming.input/gamepad.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ static HRESULT WINAPI gamepad_GetCurrentReading( IGamepad *iface, struct Gamepad
if (state.buttons[3]) value->Buttons |= GamepadButtons_Y;
if (state.buttons[4]) value->Buttons |= GamepadButtons_LeftShoulder;
if (state.buttons[5]) value->Buttons |= GamepadButtons_RightShoulder;
if (state.buttons[6]) value->Buttons |= GamepadButtons_Menu;
if (state.buttons[7]) value->Buttons |= GamepadButtons_View;
if (state.buttons[6]) value->Buttons |= GamepadButtons_View;
if (state.buttons[7]) value->Buttons |= GamepadButtons_Menu;
if (state.buttons[8]) value->Buttons |= GamepadButtons_LeftThumbstick;
if (state.buttons[9]) value->Buttons |= GamepadButtons_RightThumbstick;

Expand Down

0 comments on commit 1d57f07

Please sign in to comment.