Skip to content

TSdlJoyHatEvent

Joystick hat position change event structure (Event.JoyHat.* )

Definition

Unit: Neslib.Sdl3.Events

type TSdlJoyHatEvent = record ... end;

Properties

Name Description
Hat The joystick hat index
Joystick The joystick (or nil if not opened)
JoystickID The joystick instance ID
Kind Event kind (TSdlEventKind.JoystickHatMotion)
Timestamp In nanoseconds, populated using SdlGetTicksNS
Value The hat position value. Note that [] means the POV is centered.

Property Descriptions

Hat

The joystick hat index

property Hat: Byte read FHandle.hat

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.JoystickHatMotion)

property Kind: TSdlEventKind read GetKind

Type: TSdlEventKind


Timestamp

In nanoseconds, populated using SdlGetTicksNS

property Timestamp: UInt64 read FHandle.timestamp

Type: UInt64


Value

The hat position value. Note that [] means the POV is centered.

property Value: TSdlHats read GetValue

Type: TSdlHats