SDL_JoyBatteryEvent

Joystick battery level change event structure (event.jbattery.*)

\since This struct is available since SDL 3.2.0.

Members

Variables

percent
int percent;

< The joystick battery percent charge remaining

reserved
Uint32 reserved;
Undocumented in source.
state
SDL_PowerState state;

< The joystick battery state

timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

type
SDL_EventType type;

< SDL_EVENT_JOYSTICK_BATTERY_UPDATED

which
SDL_JoystickID which;

< The joystick instance id

Meta