Skip to content

TSdlJoyBallEvent

Joystick trackball motion event structure (Event.JoyBball.* )

Definition

Unit: Neslib.Sdl3.Events

type TSdlJoyBallEvent = record ... end;

Properties

Name Description
Ball The joystick trackball index
Joystick The joystick (or nil if not opened)
JoystickID The joystick instance ID
Kind Event kind (TSdlEventKind.JoystickBallMotion)
Rel The relative motion
Timestamp In nanoseconds, populated using SdlGetTicksNS
XRel The relative motion in the X direction
YRel The relative motion in the Y direction

Property Descriptions

Ball

The joystick trackball index

property Ball: Byte read FHandle.ball

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

property Kind: TSdlEventKind read GetKind

Type: TSdlEventKind


Rel

The relative motion

property Rel: TSdlPointF read GetRel

Type: TSdlPointF


Timestamp

In nanoseconds, populated using SdlGetTicksNS

property Timestamp: UInt64 read FHandle.timestamp

Type: UInt64


XRel

The relative motion in the X direction

property XRel: Smallint read FHandle.xrel

Type: Smallint


YRel

The relative motion in the Y direction

property YRel: Smallint read FHandle.yrel

Type: Smallint