Wiki Page Content

Differences between revisions 13 and 14
Revision 13 as of 2011-04-25 19:26:28
Size: 1100
Editor: SheenaSmith
Comment: minor change for consistency - access path added to union statement
Revision 14 as of 2011-04-30 16:45:07
Size: 1102
Editor: SheenaSmith
Comment: minor change for formatting consistency
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
[[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. [[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.

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 index of 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 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.


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