Function sdl2_sys::SDL_JoystickCurrentPowerLevel
source ยท pub unsafe extern "C" fn SDL_JoystickCurrentPowerLevel(
joystick: *mut SDL_Joystick,
) -> SDL_JoystickPowerLevel
Expand description
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.