Skip to content

TODO: add missing "SDL_JOYBATTERYUPDATED" event #80

@flowCRANE

Description

@flowCRANE

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    to doSome update necessary, critical or not

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions