TSdlSensorEvent
Sensor event structure (Event.Sensor.* )
Definition
Unit: Neslib.Sdl3.Events
Properties
Name | Description |
---|---|
Data | Up to 6 values from the sensor - additional values can be queried using TSdlSensor.GetData |
Kind | Event kind (TSdlEventKind.SensorUpdate) |
SensorID | The instance ID 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 6 values from the sensor - additional values can be queried using TSdlSensor.GetData
property Data[const AIndex: Integer]: Single read GetData
Type: Single
Kind
Event kind (TSdlEventKind.SensorUpdate)
property Kind: TSdlEventKind read GetKind
Type: TSdlEventKind
SensorID
The instance ID of the sensor
property SensorID: TSdlSensorID read GetSensorID
Type: TSdlSensorID
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