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 417 of file SDL_events.h.

Field Documentation

◆ axis

Uint8 SDL_ControllerAxisEvent::axis

The controller axis (SDL_GameControllerAxis)

Definition at line 422 of file SDL_events.h.

◆ padding1

Uint8 SDL_ControllerAxisEvent::padding1

Definition at line 423 of file SDL_events.h.

◆ padding2

Uint8 SDL_ControllerAxisEvent::padding2

Definition at line 424 of file SDL_events.h.

◆ padding3

Uint8 SDL_ControllerAxisEvent::padding3

Definition at line 425 of file SDL_events.h.

◆ padding4

Uint16 SDL_ControllerAxisEvent::padding4

Definition at line 427 of file SDL_events.h.

◆ timestamp

Uint32 SDL_ControllerAxisEvent::timestamp

In milliseconds, populated using SDL_GetTicks()

Definition at line 420 of file SDL_events.h.

◆ type

Uint32 SDL_ControllerAxisEvent::type

SDL_CONTROLLERAXISMOTION

Definition at line 419 of file SDL_events.h.

◆ value

Sint16 SDL_ControllerAxisEvent::value

The axis value (range: -32768 to 32767)

Definition at line 426 of file SDL_events.h.

◆ which

SDL_JoystickID SDL_ControllerAxisEvent::which

The joystick instance id

Definition at line 421 of file SDL_events.h.


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