|
Size: 1292
Comment: update content - event remarks re: union (for consistency); camelcase
|
Size: 1309
Comment: add SDL_Event RS
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 32: | Line 32: |
| .[[SDL_Event]] |
SDL_JoyBallEvent
A structure that contains joystick trackball motion event information.
Contents
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 union and is used when an event of type SDL_JOYBALLMOTION is reported. You would access it through the event's jball field.
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).
Related Enumerations
Related Structures
