|
Size: 739
Comment: update content - changeset 4624
|
Size: 1359
Comment: update content (old wiki)
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 12: | Line 12: |
| ||Uint8||'''which'''||the joystick device index|| ||Uint8||'''axis'''||the joystick axis index|| |
||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*^|| |
| Line 16: | Line 16: |
| ||int||'''value'''||the axis value (range: -32768 to 32767)|| | ||int||'''value'''||the axis value ^the current position of the axis^ (range: -32768 to 32767)|| |
| Line 24: | Line 24: |
| ''You can add useful comments here'' | *<<BR>>[[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,, <<Color2(orange,(for a more detailed explanation see the Joystick section))>>. ,,'''value''' is the current position of the axis.,, <<BR>>* |
| Line 27: | Line 29: |
| .[[SDL_JoystickEventState]] * .[[SDL_JoystickGetAxis]] * |
DRAFT |
SDL_JoyAxisEvent
A structure that contains joystick axis motion event structure information (event.jaxis.*).
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 orange
. '''value''' is the current position of the axis.
*
