TSdlGamepadTouchpadEvent
Gamepad touchpad event structure (Event.GamepadTouch.* )
Definition
Unit: Neslib.Sdl3.Events
Properties
| Name | Description |
|---|---|
| Finger | The index of the finger on the touchpad |
| Joystick | The joystick (or nil if not opened) |
| JoystickID | The joystick instance ID |
| Kind | Event kind (TSdlEventKind.GamepadTouchpad*) |
| Position | Normalized in the range (0...1, 0...1) with 0 being at the top-left |
| Pressure | Normalized in the range 0...1 |
| Timestamp | In nanoseconds, populated using SdlGetTicksNS |
| Touchpad | The index of the touchpad |
| X | Normalized in the range 0...1 with 0 being on the left |
| Y | Normalized in the range 0...1 with 0 being at the top |
Property Descriptions
Finger
The index of the finger on the touchpad
property Finger: Integer read FHandle.finger
Type: Integer
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.GamepadTouchpad*)
property Kind: TSdlEventKind read GetKind
Type: TSdlEventKind
Position
Normalized in the range (0...1, 0...1) with 0 being at the top-left
property Position: TSdlPointF read GetPosition
Type: TSdlPointF
Pressure
Normalized in the range 0...1
property Pressure: Single read FHandle.pressure
Type: Single
Timestamp
In nanoseconds, populated using SdlGetTicksNS
property Timestamp: UInt64 read FHandle.timestamp
Type: UInt64
Touchpad
The index of the touchpad
property Touchpad: Integer read FHandle.touchpad
Type: Integer
X
Normalized in the range 0...1 with 0 being on the left
property X: Single read FHandle.x
Type: Single
Y
Normalized in the range 0...1 with 0 being at the top
property Y: Single read FHandle.y
Type: Single