SDL_JoyBallEvent

Joystick trackball motion event structure (event.jball.*)

\since This struct is available since SDL 3.2.0.

Members

Variables

ball
Uint8 ball;

< The joystick trackball index

padding1
Uint8 padding1;
Undocumented in source.
padding2
Uint8 padding2;
Undocumented in source.
padding3
Uint8 padding3;
Undocumented in source.
reserved
Uint32 reserved;
Undocumented in source.
timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

type
SDL_EventType type;

< SDL_EVENT_JOYSTICK_BALL_MOTION

which
SDL_JoystickID which;

< The joystick instance id

xrel
Sint16 xrel;

< The relative motion in the X direction

yrel
Sint16 yrel;

< The relative motion in the Y direction

Meta