TODO: add missing "SDL_JOYBATTERYUPDATED" event
flowCRANE opened this issue · 2 comments
flowCRANE commented
There is a new event called SDL_JOYBATTERYUPDATED, which provides information about a change in joystick battery status. Corrently undocumented, but exists in the sources (last):
/* Joystick events */
SDL_JOYAXISMOTION = 0x600, /**< Joystick axis motion */
SDL_JOYBALLMOTION, /**< Joystick trackball motion */
SDL_JOYHATMOTION, /**< Joystick hat position change */
SDL_JOYBUTTONDOWN, /**< Joystick button pressed */
SDL_JOYBUTTONUP, /**< Joystick button released */
SDL_JOYDEVICEADDED, /**< A new joystick has been inserted into the system */
SDL_JOYDEVICEREMOVED, /**< An opened joystick has been removed */
SDL_JOYBATTERYUPDATED, /**< Joystick battery level change */https://www.libsdl.org/tmp/SDL/include/SDL_events.h
It fits to keep an eye on it.
Free-Pascal-meets-SDL-Website commented
Thanks