DRAFT |
SDL_JoyAxisEvent
A structure that contains joystick axis motion event structure information (event.jaxis.*).
Contents
Data Fields
Uint32 |
type |
SDL_JOYAXISMOTION |
Uint8 |
which |
the joystick device index *the index of the joystick that reported the event* |
Uint8 |
axis |
the joystick axis index *the index of the axis* |
Uint8 |
padding1 |
|
Uint8 |
padding2 |
|
int |
value |
the axis value the current position of the axis (range: -32768 to 32767) |
Code Examples
You can add your code example here
Remarks
*
SDL_JoyAxisEvent() is a member of the SDL_Event union and is used when an event of type SDL_JOYAXISMOTION is reported.
A SDL_JOYAXISMOTION event occurs whenever a user moves an axis on the joystick. The field '''which''' is the index of the joystick that reported the event and '''axis''' is the index of the axis (for a more detailed explanation see the Joystick section). '''value''' is the current position of the axis.
*