|
Size: 1432
Comment: minor change
|
Size: 1009
Comment: update content - w/ Sam; remove draft
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | |
| Line 6: | Line 5: |
| A structure that contains joystick axis motion event ,,structure,, ^information^ (event.jaxis.*). | A structure that contains joystick axis motion event information. |
| Line 12: | Line 11: |
| ||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'''||^8 empty bits to total 32^???|| ||Uint8||'''padding2'''||^8 empty bits to total 32^???|| ||int||'''value'''||the axis value ^the current position of the axis^ (range: -32768 to 32767)|| |
||Uint8||'''which'''||the index of the joystick that reported the event|| ||Uint8||'''axis'''||the axis that changed|| ||int||'''value'''||the current position of the axis (range: -32768 to 32767)|| |
| Line 24: | Line 21: |
| *<<BR>>[[SDL_JoyAxisEvent]]() is a member of the [[SDL_Event]] union and is used when an event of type SDL_JOYAXISMOTION is reported. | [[SDL_JoyAxisEvent]] is a member of the [[SDL_Event]] structure and is used when an event of type SDL_JOYAXISMOTION is reported. |
| Line 26: | Line 23: |
| 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>>* | A SDL_JOYAXISMOTION event occurs whenever a user moves an axis on the joystick. == Related Structures == .[[SDL_JoyAxisEvent]] .[[SDL_JoyBallEvent]] .[[SDL_JoyButtonEvent]] .[[SDL_JoyHatEvent]] |
| Line 29: | Line 32: |
| .[[SDL_JoystickEventState]] * .[[SDL_JoystickGetAxis]] * |
.[[SDL_JoystickEventState]] .[[SDL_JoystickGetAxis]] |
SDL_JoyAxisEvent
A structure that contains joystick axis motion event information.
Data Fields
Uint32 |
type |
SDL_JOYAXISMOTION |
Uint8 |
which |
the index of the joystick that reported the event |
Uint8 |
axis |
the axis that changed |
int |
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 structure 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.
Related Structures
