This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

SDL_JoyBallEvent

A structure that contains joystick trackball motion event information.

Data Fields

Uint32

type

SDL_JOYBALLMOTION

Uint32

timestamp

timestamp of the event

SDL_JoystickID

which

the instance id of the joystick that reported the event

Uint8

ball

the index of the trackball that changed

Sint16

xrel

the relative motion in the X direction

Sint16

yrel

the relative motion in the Y direction

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).

SDL_EventType
SDL_Event
SDL_JoyAxisEvent
SDL_JoyButtonEvent
SDL_JoyHatEvent
SDL_JoystickEventState
SDL_JoystickGetBall

CategoryStruct, CategoryEvents


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.