mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-24 00:06:10 +00:00
Added SDL_GetGamepadPowerLevel() to get the power level directly from a gamepad
This commit is contained in:
@@ -870,6 +870,7 @@ SDL3_0.0.0 {
|
||||
SDL_wcstol;
|
||||
SDL_ClearClipboardData;
|
||||
SDL_GetGamepadInstanceID;
|
||||
SDL_GetGamepadPowerLevel;
|
||||
# extra symbols go here (don't modify this line)
|
||||
local: *;
|
||||
};
|
||||
|
||||
@@ -896,3 +896,4 @@
|
||||
/* New API symbols are added at the end */
|
||||
#define SDL_ClearClipboardData SDL_ClearClipboardData_REAL
|
||||
#define SDL_GetGamepadInstanceID SDL_GetGamepadInstanceID_REAL
|
||||
#define SDL_GetGamepadPowerLevel SDL_GetGamepadPowerLevel_REAL
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user