Joystick trackball motion event structure (event.jball.*)
Defined in <SDL3/SDL_events.h>
typedef struct SDL_JoyBallEvent
{/**< SDL_EVENT_JOYSTICK_BALL_MOTION */
SDL_EventType type;
Uint32 reserved;/**< In nanoseconds, populated using SDL_GetTicksNS() */
Uint64 timestamp; /**< The joystick instance id */
SDL_JoystickID which; /**< The joystick trackball index */
Uint8 ball;
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;/**< The relative motion in the X direction */
Sint16 xrel; /**< The relative motion in the Y direction */
Sint16 yrel; } SDL_JoyBallEvent;
This struct is available since SDL 3.1.3.