SDL 3.0
SDL_JoyBatteryEvent Struct Reference

#include <SDL_events.h>

Data Fields

SDL_EventType type
 
Uint32 reserved
 
Uint64 timestamp
 
SDL_JoystickID which
 
SDL_JoystickPowerLevel level
 

Detailed Description

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

Definition at line 486 of file SDL_events.h.

Field Documentation

◆ level

SDL_JoystickPowerLevel SDL_JoyBatteryEvent::level

The joystick battery level

Definition at line 492 of file SDL_events.h.

◆ reserved

Uint32 SDL_JoyBatteryEvent::reserved

Definition at line 489 of file SDL_events.h.

◆ timestamp

Uint64 SDL_JoyBatteryEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 490 of file SDL_events.h.

◆ type

SDL_EventType SDL_JoyBatteryEvent::type

◆ which

SDL_JoystickID SDL_JoyBatteryEvent::which

The joystick instance id

Definition at line 491 of file SDL_events.h.


The documentation for this struct was generated from the following file: