chickadee » sdl2 » joystick-current-power-level

joystick-current-power-level joystickprocedure

See SDL_JoystickCurrentPowerLevel.

Returns a joystick power level enum symbol:

  • 'unknown
  • 'empty
  • 'low
  • 'medium
  • 'full
  • 'wired
  • 'max

This procedure is available in sdl2 egg version 0.2.0 and higher. It requires SDL 2.0.4 or higher. It signals an error if the compiled version of SDL is not high enough. Use the libSDL-2.0.4+ feature identifier to check before calling this procedure.