TSdlJoyAxisEvent
Joystick axis motion event structure (Event.JoyAxis.* )
Definition
Unit: Neslib.Sdl3.Events
Properties
Name | Description |
---|---|
Axis | The joystick axis index |
Joystick | The joystick (or nil if not opened) |
JoystickID | The joystick instance ID |
Kind | Event kind (TSdlEventKind.JoystickAxisMotion) |
Timestamp | In nanoseconds, populated using SdlGetTicksNS |
Value | The axis value (range: -32768 to 32767) |
Property Descriptions
Axis
The joystick axis index
property Axis: Byte read FHandle.axis
Type: Byte
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.JoystickAxisMotion)
property Kind: TSdlEventKind read GetKind
Type: TSdlEventKind
Timestamp
In nanoseconds, populated using SdlGetTicksNS
property Timestamp: UInt64 read FHandle.timestamp
Type: UInt64
Value
The axis value (range: -32768 to 32767)
property Value: Smallint read FHandle.value
Type: Smallint