Add 'const' to pointer parameters

This commit is contained in:
Petar Popovic
2025-02-21 23:55:14 +01:00
committed by Sam Lantinga
parent 911e53dece
commit b5297de56f
6 changed files with 12 additions and 12 deletions

View File

@@ -428,7 +428,7 @@ static bool SDLCALL SDL_GamepadEventWatcher(void *userdata, SDL_Event *event)
orientation, so when it's changed orientation to be used as a
gamepad, change the sensor orientation to match.
*/
static void AdjustSensorOrientation(SDL_Joystick *joystick, float *src, float *dst)
static void AdjustSensorOrientation(const SDL_Joystick *joystick, const float *src, float *dst)
{
unsigned int i, j;