Wiki Page Content

Differences between revisions 16 and 17
Revision 16 as of 2013-06-12 21:22:13
Size: 1127
Comment: Updated types to match SDL_events.h.
Revision 17 as of 2013-09-05 20:24:54
Size: 1597
Comment: Updated structure.
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
||Uint32||'''timestamp'''||timestamp of the event||
Line 13: Line 14:
||<style="color: #808080;">Uint8||<style="color: #808080;">'''padding1'''||<style="color: #808080;">||
||<style="color: #808080;">Uint8||<style="color: #808080;">'''padding2'''||<style="color: #808080;">||
||<style="color: #808080;">Uint8||<style="color: #808080;">'''padding3'''||<style="color: #808080;">||
Line 14: Line 18:
||<style="color: #808080;">Uint16||<style="color: #808080;">'''padding4'''||<style="color: #808080;">||

SDL_JoyAxisEvent

A structure that contains joystick axis motion event information.

Data Fields

Uint32

type

SDL_JOYAXISMOTION

Uint32

timestamp

timestamp of the event

SDL_JoystickID

which

the index of the joystick that reported the event

Uint8

axis

the index of the axis that changed

Uint8

padding1

Uint8

padding2

Uint8

padding3

Sint16

value

the current position of the axis (range: -32768 to 32767)

Uint16

padding4

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