This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

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 instance id of the joystick that reported the event

Uint8

axis

the index of the axis that changed

Sint16

value

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

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.

SDL_EventType
SDL_Event
SDL_JoyBallEvent
SDL_JoyButtonEvent
SDL_JoyHatEvent
SDL_JoystickEventState
SDL_JoystickGetAxis

CategoryStruct, CategoryEvents


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.