TSdlJoyBatteryEvent
Joystick battery level change event structure (Event.JoyBattery.* )
Definition
Unit: Neslib.Sdl3.Events
Properties
Name | Description |
---|---|
Joystick | The joystick (or nil if not opened) |
JoystickID | The joystick instance ID |
Kind | Event kind (TSdlEventKind.JoystickBatteryUpdated) |
Percent | The joystick battery percent charge remaining |
State | The joystick battery state |
Timestamp | In nanoseconds, populated using SdlGetTicksNS |
Property Descriptions
Joystick
The joystick (or nil if not opened)
property Joystick: TSdlJoystick read GetJoystick
Type: TSdlJoystick
JoystickID
The joystick instance ID
property JoystickID: TSdlJoystickID read GetJoystickID
Type: TSdlJoystickID
Kind
Event kind (TSdlEventKind.JoystickBatteryUpdated)
property Kind: TSdlEventKind read GetKind
Type: TSdlEventKind
Percent
The joystick battery percent charge remaining
property Percent: Integer read FHandle.percent
Type: Integer
State
The joystick battery state
property State: TSdlPowerState read GetState
Type: TSdlPowerState
Timestamp
In nanoseconds, populated using SdlGetTicksNS
property Timestamp: UInt64 read FHandle.timestamp
Type: UInt64