|
SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
| SDL_EventType | type |
| Uint32 | reserved |
| Uint64 | timestamp |
| SDL_JoystickID | which |
| SDL_PowerState | state |
| int | percent |
Joystick battery level change event structure (event.jbattery.*)
Definition at line 609 of file SDL_events.h.
| int SDL_JoyBatteryEvent::percent |
The joystick battery percent charge remaining
Definition at line 616 of file SDL_events.h.
| Uint32 SDL_JoyBatteryEvent::reserved |
Definition at line 612 of file SDL_events.h.
| SDL_PowerState SDL_JoyBatteryEvent::state |
The joystick battery state
Definition at line 615 of file SDL_events.h.
| Uint64 SDL_JoyBatteryEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 613 of file SDL_events.h.
| SDL_EventType SDL_JoyBatteryEvent::type |
SDL_EVENT_JOYSTICK_BATTERY_UPDATED
Definition at line 611 of file SDL_events.h.
| SDL_JoystickID SDL_JoyBatteryEvent::which |
The joystick instance id
Definition at line 614 of file SDL_events.h.