SDL  2.0
SDL_ControllerAxisEvent Struct Reference

Game controller axis motion event structure (event.caxis.*) More...

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint32 timestamp
 
SDL_JoystickID which
 
Uint8 axis
 
Uint8 padding1
 
Uint8 padding2
 
Uint8 padding3
 
Sint16 value
 
Uint16 padding4
 

Detailed Description

Game controller axis motion event structure (event.caxis.*)

Definition at line 388 of file SDL_events.h.

Field Documentation

◆ axis

Uint8 SDL_ControllerAxisEvent::axis

The controller axis (SDL_GameControllerAxis)

Definition at line 393 of file SDL_events.h.

◆ padding1

Uint8 SDL_ControllerAxisEvent::padding1

Definition at line 394 of file SDL_events.h.

◆ padding2

Uint8 SDL_ControllerAxisEvent::padding2

Definition at line 395 of file SDL_events.h.

◆ padding3

Uint8 SDL_ControllerAxisEvent::padding3

Definition at line 396 of file SDL_events.h.

◆ padding4

Uint16 SDL_ControllerAxisEvent::padding4

Definition at line 398 of file SDL_events.h.

◆ timestamp

Uint32 SDL_ControllerAxisEvent::timestamp

In milliseconds, populated using SDL_GetTicks()

Definition at line 391 of file SDL_events.h.

◆ type

Uint32 SDL_ControllerAxisEvent::type

SDL_CONTROLLERAXISMOTION

Definition at line 390 of file SDL_events.h.

◆ value

Sint16 SDL_ControllerAxisEvent::value

The axis value (range: -32768 to 32767)

Definition at line 397 of file SDL_events.h.

◆ which

SDL_JoystickID SDL_ControllerAxisEvent::which

The joystick instance id

Definition at line 392 of file SDL_events.h.


The documentation for this struct was generated from the following file: