Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_JoyBallEvent(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_!JoyBallEvent !!!SDL_!JoyBallEvent NAME STRUCTURE DEFINITION STRUCTURE DATA DESCRIPTION SEE ALSO ---- !!NAME SDL_!JoyBallEvent- Joystick trackball motion event structure !!STRUCTURE DEFINITION typedef struct{ Uint8 type; Uint8 which; Uint8 ball; Sint16 xrel, yrel; } SDL_!JoyBallEvent; !!STRUCTURE DATA __type SDL_JOYBALLMOTION__ __which__ Joystick device index __ball__ Joystick trackball index __xrel__, __yrel__ The relative motion in the X/Y direction !!DESCRIPTION __SDL_!JoyBallEvent__ is a member of the __SDL_Event__ union and is used when an event of type __SDL_JOYBALLMOTION__ is reported. A __SDL_JOYBALLMOTION__ event occurs when a user moves a trackball on the joystick. The field __which__ is the index of the joystick that reported the event and __ball__ is the index of the trackball (for a more detailed explaination see the ''Joystick section''). Trackballs only return relative motion, this is the change in position on the ball since it was last polled (last cycle of the event loop) and it is stored in __xrel__ and __yrel__. !!SEE ALSO __SDL_Event__, ''Joystick Functions'', __SDL_!JoystickEventState__, __SDL_!JoystickGetBall__ ----
One page links to
SDL_JoyBallEvent(3)
:
SDLManPages
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.