THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
Game controller axis motion event structure (event.caxis.*)
Defined in [SDL_events.h](https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_events.h), but apps should _only_ `#include "SDL.h"`!
typedef struct SDL_ControllerAxisEvent
{/**< ::SDL_CONTROLLERAXISMOTION */
Uint32 type; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 timestamp; /**< The joystick instance id */
SDL_JoystickID which; /**< The controller axis (SDL_GameControllerAxis) */
Uint8 axis;
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;/**< The axis value (range: -32768 to 32767) */
Sint16 value;
Uint16 padding4; } SDL_ControllerAxisEvent;
Uint32 |
type |
SDL_CONTROLLERAXISMOTION |
Uint32 |
timestamp |
the timestamp of the event |
SDL_JoystickID |
which |
the joystick instance id |
Uint8 |
axis |
the controller axis (SDL_GameControllerAxis) |
Sint16 |
value |
the axis value (range: -32768 to 32767) |
CategoryAPI, CategoryAPIStruct, CategoryStruct, CategoryEvents, CategoryDraft