SDL  2.0
SDL_JoyAxisEvent Struct Reference

Joystick axis motion event structure (event.jaxis.*) 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

Joystick axis motion event structure (event.jaxis.*)

Definition at line 300 of file SDL_events.h.

Field Documentation

§ axis

Uint8 SDL_JoyAxisEvent::axis

The joystick axis index

Definition at line 305 of file SDL_events.h.

Referenced by loop(), SDL_GameControllerEventWatcher(), and WatchJoystick().

§ padding1

Uint8 SDL_JoyAxisEvent::padding1

Definition at line 306 of file SDL_events.h.

§ padding2

Uint8 SDL_JoyAxisEvent::padding2

Definition at line 307 of file SDL_events.h.

§ padding3

Uint8 SDL_JoyAxisEvent::padding3

Definition at line 308 of file SDL_events.h.

§ padding4

Uint16 SDL_JoyAxisEvent::padding4

Definition at line 310 of file SDL_events.h.

§ timestamp

Uint32 SDL_JoyAxisEvent::timestamp

In milliseconds, populated using SDL_GetTicks()

Definition at line 303 of file SDL_events.h.

§ type

Uint32 SDL_JoyAxisEvent::type

SDL_JOYAXISMOTION

Definition at line 302 of file SDL_events.h.

§ value

Sint16 SDL_JoyAxisEvent::value

The axis value (range: -32768 to 32767)

Definition at line 309 of file SDL_events.h.

Referenced by loop(), and SDL_GameControllerEventWatcher().

§ which

SDL_JoystickID SDL_JoyAxisEvent::which

The joystick instance id

Definition at line 304 of file SDL_events.h.

Referenced by loop(), SDL_GameControllerEventWatcher(), and WatchJoystick().


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