Skip to content

Commit

Permalink
Map the right pad on the Steam Controller to the right stick in the g…
Browse files Browse the repository at this point in the history
…ame controller API
  • Loading branch information
slouken committed Jan 31, 2020
1 parent 39a498c commit 212609b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/joystick/hidapi/SDL_hidapi_steam.c
Expand Up @@ -1122,6 +1122,8 @@ HIDAPI_DriverSteam_UpdateDevice(SDL_HIDAPI_Device *device)

SDL_PrivateJoystickAxis(joystick, SDL_CONTROLLER_AXIS_LEFTX, ctx->m_state.sLeftStickX);
SDL_PrivateJoystickAxis(joystick, SDL_CONTROLLER_AXIS_LEFTY, ~ctx->m_state.sLeftStickY);
SDL_PrivateJoystickAxis(joystick, SDL_CONTROLLER_AXIS_RIGHTX, ctx->m_state.sRightPadX);
SDL_PrivateJoystickAxis(joystick, SDL_CONTROLLER_AXIS_RIGHTY, ~ctx->m_state.sRightPadY);

ctx->m_last_state = ctx->m_state;
}
Expand Down

0 comments on commit 212609b

Please sign in to comment.