SDL_JoyAxisEvent

Joystick axis motion event structure (event.jaxis.*)

\since This struct is available since SDL 3.2.0.

Members

Variables

axis
Uint8 axis;

< The joystick axis index

padding1
Uint8 padding1;
Undocumented in source.
padding2
Uint8 padding2;
Undocumented in source.
padding3
Uint8 padding3;
Undocumented in source.
padding4
Uint16 padding4;
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_AXIS_MOTION

value
Sint16 value;

< The axis value (range: -32768 to 32767)

which
SDL_JoystickID which;

< The joystick instance id

Meta