RetroArch
Classes | Macros | Typedefs | Enumerations | Functions
vpad.h File Reference
#include <wiiu/types.h>
Include dependency graph for vpad.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  VPADVec2D
 
struct  VPADVec3D
 
struct  VPADTouchData
 
struct  VPADAccStatus
 
struct  VPADGyroStatus
 
struct  VPADStatus
 

Macros

#define VPAD_MASK_EMULATED_STICKS
 
#define VPAD_MASK_BUTTONS   ~VPAD_MASK_EMULATED_STICKS
 

Typedefs

typedef enum VPADButtonBits VPADButtonBits
 
typedef enum VPADButtons VPADButtons
 
typedef enum VPADTouchPadValidity VPADTouchPadValidity
 
typedef enum VPADReadError VPADReadError
 
typedef struct VPADVec2D VPADVec2D
 
typedef struct VPADVec3D VPADVec3D
 
typedef struct VPADTouchData VPADTouchData
 
typedef struct VPADAccStatus VPADAccStatus
 
typedef struct VPADGyroStatus VPADGyroStatus
 
typedef struct VPADStatus VPADStatus
 

Enumerations

enum  VPADButtonBits {
  VPAD_BUTTON_SYNC_BIT = 0, VPAD_BUTTON_HOME_BIT = 1, VPAD_BUTTON_MINUS_BIT = 2, VPAD_BUTTON_PLUS_BIT = 3,
  VPAD_BUTTON_R_BIT = 4, VPAD_BUTTON_L_BIT = 5, VPAD_BUTTON_ZR_BIT = 6, VPAD_BUTTON_ZL_BIT = 7,
  VPAD_BUTTON_DOWN_BIT = 8, VPAD_BUTTON_UP_BIT = 9, VPAD_BUTTON_RIGHT_BIT = 10, VPAD_BUTTON_LEFT_BIT = 11,
  VPAD_BUTTON_Y_BIT = 12, VPAD_BUTTON_X_BIT = 13, VPAD_BUTTON_B_BIT = 14, VPAD_BUTTON_A_BIT = 15,
  VPAD_BUTTON_TV_BIT = 16, VPAD_BUTTON_STICK_R_BIT = 17, VPAD_BUTTON_STICK_L_BIT = 18, VPAD_BUTTON_TOUCH_BIT = 19,
  VPAD_BUTTON_UNUSED1_BIT = 20, VPAD_BUTTON_UNUSED2_BIT = 21, VPAD_BUTTON_UNUSED3_BIT = 22, VPAD_STICK_R_EMULATION_DOWN_BIT = 23,
  VPAD_STICK_R_EMULATION_UP_BIT = 24, VPAD_STICK_R_EMULATION_RIGHT_BIT = 25, VPAD_STICK_R_EMULATION_LEFT_BIT = 26, VPAD_STICK_L_EMULATION_DOWN_BIT = 27,
  VPAD_STICK_L_EMULATION_UP_BIT = 28, VPAD_STICK_L_EMULATION_RIGHT_BIT = 29, VPAD_STICK_L_EMULATION_LEFT_BIT = 30
}
 
enum  VPADButtons {
  VPAD_BUTTON_SYNC = 0x00000001, VPAD_BUTTON_HOME = 0x00000002, VPAD_BUTTON_MINUS = 0x00000004, VPAD_BUTTON_PLUS = 0x00000008,
  VPAD_BUTTON_R = 0x00000010, VPAD_BUTTON_L = 0x00000020, VPAD_BUTTON_ZR = 0x00000040, VPAD_BUTTON_ZL = 0x00000080,
  VPAD_BUTTON_DOWN = 0x00000100, VPAD_BUTTON_UP = 0x00000200, VPAD_BUTTON_RIGHT = 0x00000400, VPAD_BUTTON_LEFT = 0x00000800,
  VPAD_BUTTON_Y = 0x00001000, VPAD_BUTTON_X = 0x00002000, VPAD_BUTTON_B = 0x00004000, VPAD_BUTTON_A = 0x00008000,
  VPAD_BUTTON_TV = 0x00010000, VPAD_BUTTON_STICK_R = 0x00020000, VPAD_BUTTON_STICK_L = 0x00040000, VPAD_BUTTON_TOUCH = 0x00080000,
  VPAD_BUTTON_UNUSED1 = 0x00100000, VPAD_BUTTON_UNUSED2 = 0x00200000, VPAD_BUTTON_UNUSED3 = 0x00400000, VPAD_STICK_R_EMULATION_DOWN = 0x00800000,
  VPAD_STICK_R_EMULATION_UP = 0x01000000, VPAD_STICK_R_EMULATION_RIGHT = 0x02000000, VPAD_STICK_R_EMULATION_LEFT = 0x04000000, VPAD_STICK_L_EMULATION_DOWN = 0x08000000,
  VPAD_STICK_L_EMULATION_UP = 0x10000000, VPAD_STICK_L_EMULATION_RIGHT = 0x20000000, VPAD_STICK_L_EMULATION_LEFT = 0x40000000
}
 
enum  VPADTouchPadValidity { VPAD_VALID = 0x0, VPAD_INVALID_X = 0x1, VPAD_INVALID_Y = 0x2 }
 
enum  VPADReadError { VPAD_READ_SUCCESS = 0, VPAD_READ_NO_SAMPLES = -1, VPAD_READ_INVALID_CONTROLLER = -2 }
 

Functions

void VPADInit ()
 
int32_t VPADRead (uint32_t chan, VPADStatus *buffers, uint32_t count, VPADReadError *error)
 
void VPADGetTPCalibratedPoint (uint32_t chan, VPADTouchData *calibratedData, VPADTouchData *uncalibratedData)
 

Macro Definition Documentation

◆ VPAD_MASK_BUTTONS

#define VPAD_MASK_BUTTONS   ~VPAD_MASK_EMULATED_STICKS

◆ VPAD_MASK_EMULATED_STICKS

#define VPAD_MASK_EMULATED_STICKS
Value:
VPAD_STICK_R_EMULATION_RIGHT | \
VPAD_STICK_R_EMULATION_UP | \
VPAD_STICK_R_EMULATION_DOWN | \
VPAD_STICK_L_EMULATION_LEFT | \
VPAD_STICK_L_EMULATION_RIGHT | \
VPAD_STICK_L_EMULATION_UP | \
VPAD_STICK_L_EMULATION_DOWN)
Definition: vpad.h:70

Typedef Documentation

◆ VPADAccStatus

typedef struct VPADAccStatus VPADAccStatus

◆ VPADButtonBits

◆ VPADButtons

typedef enum VPADButtons VPADButtons

◆ VPADGyroStatus

◆ VPADReadError

◆ VPADStatus

typedef struct VPADStatus VPADStatus

◆ VPADTouchData

typedef struct VPADTouchData VPADTouchData

◆ VPADTouchPadValidity

◆ VPADVec2D

typedef struct VPADVec2D VPADVec2D

◆ VPADVec3D

typedef struct VPADVec3D VPADVec3D

Enumeration Type Documentation

◆ VPADButtonBits

Enumerator
VPAD_BUTTON_SYNC_BIT 
VPAD_BUTTON_HOME_BIT 
VPAD_BUTTON_MINUS_BIT 
VPAD_BUTTON_PLUS_BIT 
VPAD_BUTTON_R_BIT 
VPAD_BUTTON_L_BIT 
VPAD_BUTTON_ZR_BIT 
VPAD_BUTTON_ZL_BIT 
VPAD_BUTTON_DOWN_BIT 
VPAD_BUTTON_UP_BIT 
VPAD_BUTTON_RIGHT_BIT 
VPAD_BUTTON_LEFT_BIT 
VPAD_BUTTON_Y_BIT 
VPAD_BUTTON_X_BIT 
VPAD_BUTTON_B_BIT 
VPAD_BUTTON_A_BIT 
VPAD_BUTTON_TV_BIT 
VPAD_BUTTON_STICK_R_BIT 
VPAD_BUTTON_STICK_L_BIT 
VPAD_BUTTON_TOUCH_BIT 
VPAD_BUTTON_UNUSED1_BIT 
VPAD_BUTTON_UNUSED2_BIT 
VPAD_BUTTON_UNUSED3_BIT 
VPAD_STICK_R_EMULATION_DOWN_BIT 
VPAD_STICK_R_EMULATION_UP_BIT 
VPAD_STICK_R_EMULATION_RIGHT_BIT 
VPAD_STICK_R_EMULATION_LEFT_BIT 
VPAD_STICK_L_EMULATION_DOWN_BIT 
VPAD_STICK_L_EMULATION_UP_BIT 
VPAD_STICK_L_EMULATION_RIGHT_BIT 
VPAD_STICK_L_EMULATION_LEFT_BIT 

◆ VPADButtons

Enumerator
VPAD_BUTTON_SYNC 
VPAD_BUTTON_HOME 
VPAD_BUTTON_MINUS 
VPAD_BUTTON_PLUS 
VPAD_BUTTON_R 
VPAD_BUTTON_L 
VPAD_BUTTON_ZR 
VPAD_BUTTON_ZL 
VPAD_BUTTON_DOWN 
VPAD_BUTTON_UP 
VPAD_BUTTON_RIGHT 
VPAD_BUTTON_LEFT 
VPAD_BUTTON_Y 
VPAD_BUTTON_X 
VPAD_BUTTON_B 
VPAD_BUTTON_A 
VPAD_BUTTON_TV 
VPAD_BUTTON_STICK_R 
VPAD_BUTTON_STICK_L 
VPAD_BUTTON_TOUCH 
VPAD_BUTTON_UNUSED1 
VPAD_BUTTON_UNUSED2 
VPAD_BUTTON_UNUSED3 
VPAD_STICK_R_EMULATION_DOWN 
VPAD_STICK_R_EMULATION_UP 
VPAD_STICK_R_EMULATION_RIGHT 
VPAD_STICK_R_EMULATION_LEFT 
VPAD_STICK_L_EMULATION_DOWN 
VPAD_STICK_L_EMULATION_UP 
VPAD_STICK_L_EMULATION_RIGHT 
VPAD_STICK_L_EMULATION_LEFT 

◆ VPADReadError

Enumerator
VPAD_READ_SUCCESS 
VPAD_READ_NO_SAMPLES 
VPAD_READ_INVALID_CONTROLLER 

◆ VPADTouchPadValidity

Enumerator
VPAD_VALID 

Both X and Y touchpad positions are accurate

VPAD_INVALID_X 

X position is inaccurate

VPAD_INVALID_Y 

Y position is inaccurate

Function Documentation

◆ VPADGetTPCalibratedPoint()

void VPADGetTPCalibratedPoint ( uint32_t  chan,
VPADTouchData calibratedData,
VPADTouchData uncalibratedData 
)
Here is the caller graph for this function:

◆ VPADInit()

void VPADInit ( )

Deprecated

◆ VPADRead()

int32_t VPADRead ( uint32_t  chan,
VPADStatus buffers,
uint32_t  count,
VPADReadError error 
)
Here is the caller graph for this function: