|
Size: 1180
Comment: Removed padding, see SGStructures page.
|
← Revision 19 as of 2014-12-06 12:23:39 ⇥
Size: 1186
Comment: Fixed description for which parameter (Feedback 2014-12-05).
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 12: | Line 12: |
| ||SDL_JoystickID||'''which'''||the index of the joystick that reported the event|| | ||SDL_JoystickID||'''which'''||the instance id of the joystick that reported the event|| |
SDL_JoyAxisEvent
A structure that contains joystick axis motion event information.
Contents
Data Fields
Uint32 |
type |
SDL_JOYAXISMOTION |
Uint32 |
timestamp |
timestamp of the event |
SDL_JoystickID |
which |
the instance id of the joystick that reported the event |
Uint8 |
axis |
the index of the axis that changed |
Sint16 |
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. You would access it through the event's jaxis field.
An SDL_JOYAXISMOTION event occurs whenever a user moves an axis on the joystick.
Related Enumerations
Related Structures
