SDL_JoyBallEvent - Joystick trackball motion event structure (event.jball.*)
Contents
Availability
This struct is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.20 SDL_JoyBallEvent(3type)
Name
SDL_JoyBallEvent - Joystick trackball motion event structure (event.jball.*)
Synopsis
#include<SDL3/SDL_events.h>typedefstructSDL_JoyBallEvent{SDL_EventTypetype;/**<SDL_EVENT_JOYSTICK_BALL_MOTION*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_JoystickIDwhich;/**<Thejoystickinstanceid*/Uint8ball;/**<Thejoysticktrackballindex*/Uint8padding1;Uint8padding2;Uint8padding3;Sint16xrel;/**<TherelativemotionintheXdirection*/Sint16yrel;/**<TherelativemotionintheYdirection*/}SDL_JoyBallEvent;