Skip to content

TSdlGamepadAxisEvent

Gamepad axis motion event structure (Event.GamepadAxis.* )

Definition

Unit: Neslib.Sdl3.Events

type TSdlGamepadAxisEvent = record ... end;

Properties

Name Description
Axis The gamepad axis
Joystick The joystick (or nil if not opened)
JoystickID The joystick instance ID
Kind Event kind (TSdlEventKind.GamepadAxisMotion)
Timestamp In nanoseconds, populated using SdlGetTicksNS
Value The axis value (range: -32768 to 32767)

Property Descriptions

Axis

The gamepad axis

property Axis: TSdlGamepadAxis read GetAxis

Type: TSdlGamepadAxis


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

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