SDL 3.0
SDL_GamepadBinding Struct Reference

#include <SDL_gamepad.h>

Data Fields

SDL_GamepadBindingType bindType
 
union {
   int   button
 
   int   axis
 
   struct {
      int   hat
 
      int   hat_mask
 
   }   hat
 
value
 

Detailed Description

Get the SDL joystick layer binding for this gamepad button/axis mapping

Definition at line 141 of file SDL_gamepad.h.

Field Documentation

◆ axis

int SDL_GamepadBinding::axis

Definition at line 147 of file SDL_gamepad.h.

◆ bindType

SDL_GamepadBindingType SDL_GamepadBinding::bindType

Definition at line 143 of file SDL_gamepad.h.

◆ button

int SDL_GamepadBinding::button

Definition at line 146 of file SDL_gamepad.h.

◆ hat [1/2]

int SDL_GamepadBinding::hat

Definition at line 149 of file SDL_gamepad.h.

◆  [2/2]

struct { ... } SDL_GamepadBinding::hat

◆ hat_mask

int SDL_GamepadBinding::hat_mask

Definition at line 150 of file SDL_gamepad.h.

◆ 

union { ... } SDL_GamepadBinding::value

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