Added SDL_GetGamepadPowerLevel() to get the power level directly from a gamepad

This commit is contained in:
Sam Lantinga 2023-07-11 07:09:24 -07:00
parent 9885f4d245
commit 2e3404db01
6 changed files with 26 additions and 1 deletions

View file

@ -941,3 +941,4 @@ SDL_DYNAPI_PROC(long,SDL_wcstol,(const wchar_t *a, wchar_t **b, int c),(a,b,c),r
/* New API symbols are added at the end */
SDL_DYNAPI_PROC(int,SDL_ClearClipboardData,(void),(),return)
SDL_DYNAPI_PROC(SDL_JoystickID,SDL_GetGamepadInstanceID,(SDL_Gamepad *a),(a),return)
SDL_DYNAPI_PROC(SDL_JoystickPowerLevel,SDL_GetGamepadPowerLevel,(SDL_Gamepad *a),(a),return)