From b1a82b5772b68e97bf9a67d4b170498bcf8be280 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 8 Jan 2024 19:07:05 +0000 Subject: [PATCH] gamecontroller: Fix function name in cherry-picked documentation SDL_GetGamepadAxis() is a SDL3-specific name: SDL2 calls gamepads "game controllers". Fixes: d3c21666 "gamepad: Clarify range and direction of axes" Signed-off-by: Simon McVittie --- include/SDL_gamecontroller.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_gamecontroller.h b/include/SDL_gamecontroller.h index a1b436685..281fa356c 100644 --- a/include/SDL_gamecontroller.h +++ b/include/SDL_gamecontroller.h @@ -614,7 +614,7 @@ extern DECLSPEC void SDLCALL SDL_GameControllerUpdate(void); * or autodetect the dead zone, which varies between controllers. * * Trigger axis values range from 0 (released) to SDL_JOYSTICK_AXIS_MAX - * (fully pressed) when reported by SDL_GetGamepadAxis(). Note that this is not the + * (fully pressed) when reported by SDL_GameControllerGetAxis(). Note that this is not the * same range that will be reported by the lower-level SDL_GetJoystickAxis(). */ typedef enum