Wiki Page Content

Revision 10 as of 2011-01-17 17:55:47

Clear message

SDL_JoyBallEvent

A structure that contains joystick trackball motion event information.

Data Fields

Uint32

type

SDL_JOYBALLMOTION

Uint8

which

the index of the joystick that reported the event

Uint8

ball

the index of the trackball that changed

int

xrel

the relative motion in the X direction

int

yrel

the relative motion in the Y direction

Code Examples

You can add your code example here

Remarks

SDL_JoyBallEvent is a member of the SDL_Event structure and is used when an event of type SDL_JOYBALLMOTION is reported.

An SDL_JOYBALLMOTION event occurs when a user moves a trackball on the joystick.

Trackballs only return relative motion. This is the change in position of the ball since it was last polled (last cycle of the event loop).


CategoryStruct, CategoryEvents

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit