My Project
Loading...
Searching...
No Matches
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.*)

Field Documentation

◆ axis

Uint8 axis

The joystick axis index

◆ timestamp

Uint32 timestamp

In milliseconds, populated using SDL_GetTicks()

◆ type

Uint32 type

◆ value

Sint16 value

The axis value (range: -32768 to 32767)

◆ which

The joystick instance id


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