TSdlGamepadSensorEvent
Gamepad sensor event structure (Event.GamepadSensor.* )
Definition
Unit: Neslib.Sdl3.Events
Properties
Name | Description |
---|---|
Data | Up to 3 values from the sensor |
Joystick | The joystick (or nil if not opened) |
JoystickID | The joystick instance ID |
Kind | Event kind (TSdlEventKind.GamepadSensorUpdate) |
Sensor | The type of the sensor |
SensorTimestamp | The timestamp of the sensor reading in nanoseconds, not necessarily synchronized with the system clock |
Timestamp | In nanoseconds, populated using SdlGetTicksNS |
Property Descriptions
Data
Up to 3 values from the sensor
property Data[const AIndex: Integer]: Single read GetData
Type: Single
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.GamepadSensorUpdate)
property Kind: TSdlEventKind read GetKind
Type: TSdlEventKind
Sensor
The type of the sensor
property Sensor: TSdlSensorKind read GetSensor
Type: TSdlSensorKind
SensorTimestamp
The timestamp of the sensor reading in nanoseconds, not necessarily synchronized with the system clock
property SensorTimestamp: UInt64 read FHandle.sensor_timestamp
Type: UInt64
Timestamp
In nanoseconds, populated using SdlGetTicksNS
property Timestamp: UInt64 read FHandle.timestamp
Type: UInt64