Wiki Page Content

Differences between revisions 7 and 8
Revision 7 as of 2010-10-11 04:57:58
Size: 1432
Editor: SheenaSmith
Comment: minor change
Revision 8 as of 2011-01-17 17:17:18
Size: 1009
Editor: SheenaSmith
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||'''paddi
ng1'''||^8 empty bits to total 32^???||
||Uint8||'''pa
dding2'''||^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.


CategoryStruct, CategoryEvents

None: SDL_JoyAxisEvent (last edited 2014-12-06 12:23:39 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit