sdlJoystickCurrentPowerLevel function
Get the battery level of a joystick as SDL_JoystickPowerLevel.
\param joystick the SDL_Joystick to query
\returns the current battery level as SDL_JoystickPowerLevel on success or
SDL_JOYSTICK_POWER_UNKNOWN
if it is unknown
\since This function is available since SDL 2.0.4.
extern DECLSPEC SDL_JoystickPowerLevel SDLCALL SDL_JoystickCurrentPowerLevel(SDL_Joystick *joystick)
Implementation
int sdlJoystickCurrentPowerLevel(Pointer<SdlJoystick> joystick) {
final sdlJoystickCurrentPowerLevelLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlJoystick> joystick),
int Function(
Pointer<SdlJoystick> joystick)>('SDL_JoystickCurrentPowerLevel');
return sdlJoystickCurrentPowerLevelLookupFunction(joystick);
}