wut  1.0.0-beta8
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions

Data Structures

struct  WPADVec2D
 
struct  WPADStatusProController
 

Typedefs

typedef struct WPADStatusProController WPADStatusProController
 
typedef struct WPADVec2D WPADVec2D
 
typedef enum WPADChan WPADChan
 
typedef enum WPADDataFormat WPADDataFormat
 
typedef enum WPADExtensionType WPADExtensionType
 
typedef enum WPADButton WPADButton
 
typedef enum WPADClassicButton WPADClassicButton
 
typedef enum WPADProButton WPADProButton
 
typedef void(* WPADSamplingCallback) (WPADChan chan)
 
typedef void(* WPADExtensionCallback) (WPADChan chan, int32_t status)
 
typedef void(* WPADConnectCallback) (WPADChan chan, int32_t status)
 

Enumerations

enum  WPADChan {
  WPAD_CHAN_0 = 0,
  WPAD_CHAN_1 = 1,
  WPAD_CHAN_2 = 2,
  WPAD_CHAN_3 = 3
}
 
enum  WPADDataFormat { WPAD_FMT_PRO_CONTROLLER = 22 }
 
enum  WPADExtensionType {
  WPAD_EXT_CORE = 0,
  WPAD_EXT_NUNCHUK = 1,
  WPAD_EXT_CLASSIC = 2,
  WPAD_EXT_MPLUS = 5,
  WPAD_EXT_MPLUS_NUNCHUK = 6,
  WPAD_EXT_MPLUS_CLASSIC = 7,
  WPAD_EXT_PRO_CONTROLLER = 31
}
 
enum  WPADButton {
  WPAD_BUTTON_LEFT = 0x0001,
  WPAD_BUTTON_RIGHT = 0x0002,
  WPAD_BUTTON_DOWN = 0x0004,
  WPAD_BUTTON_UP = 0x0008,
  WPAD_BUTTON_PLUS = 0x0010,
  WPAD_BUTTON_2 = 0x0100,
  WPAD_BUTTON_1 = 0x0200,
  WPAD_BUTTON_B = 0x0400,
  WPAD_BUTTON_A = 0x0800,
  WPAD_BUTTON_MINUS = 0x1000,
  WPAD_BUTTON_Z = 0x2000,
  WPAD_BUTTON_C = 0x4000,
  WPAD_BUTTON_HOME = 0x8000
}
 
enum  WPADClassicButton {
  WPAD_CLASSIC_BUTTON_UP = 0x0001,
  WPAD_CLASSIC_BUTTON_LEFT = 0x0002,
  WPAD_CLASSIC_BUTTON_ZR = 0x0004,
  WPAD_CLASSIC_BUTTON_X = 0x0008,
  WPAD_CLASSIC_BUTTON_A = 0x0010,
  WPAD_CLASSIC_BUTTON_Y = 0x0020,
  WPAD_CLASSIC_BUTTON_B = 0x0040,
  WPAD_CLASSIC_BUTTON_ZL = 0x0080,
  WPAD_CLASSIC_BUTTON_R = 0x0200,
  WPAD_CLASSIC_BUTTON_PLUS = 0x0400,
  WPAD_CLASSIC_BUTTON_HOME = 0x0800,
  WPAD_CLASSIC_BUTTON_MINUS = 0x1000,
  WPAD_CLASSIC_BUTTON_L = 0x2000,
  WPAD_CLASSIC_BUTTON_DOWN = 0x4000,
  WPAD_CLASSIC_BUTTON_RIGHT = 0x8000
}
 
enum  WPADProButton {
  WPAD_PRO_BUTTON_UP = 0x00000001,
  WPAD_PRO_BUTTON_LEFT = 0x00000002,
  WPAD_PRO_TRIGGER_ZR = 0x00000004,
  WPAD_PRO_BUTTON_X = 0x00000008,
  WPAD_PRO_BUTTON_A = 0x00000010,
  WPAD_PRO_BUTTON_Y = 0x00000020,
  WPAD_PRO_BUTTON_B = 0x00000040,
  WPAD_PRO_TRIGGER_ZL = 0x00000080,
  WPAD_PRO_RESERVED = 0x00000100,
  WPAD_PRO_TRIGGER_R = 0x00000200,
  WPAD_PRO_BUTTON_PLUS = 0x00000400,
  WPAD_PRO_BUTTON_HOME = 0x00000800,
  WPAD_PRO_BUTTON_MINUS = 0x00001000,
  WPAD_PRO_TRIGGER_L = 0x00002000,
  WPAD_PRO_BUTTON_DOWN = 0x00004000,
  WPAD_PRO_BUTTON_RIGHT = 0x00008000,
  WPAD_PRO_BUTTON_STICK_R = 0x00010000,
  WPAD_PRO_BUTTON_STICK_L = 0x00020000,
  WPAD_PRO_STICK_L_EMULATION_UP = 0x00200000,
  WPAD_PRO_STICK_L_EMULATION_DOWN = 0x00100000,
  WPAD_PRO_STICK_L_EMULATION_LEFT = 0x00040000,
  WPAD_PRO_STICK_L_EMULATION_RIGHT = 0x00080000,
  WPAD_PRO_STICK_R_EMULATION_UP = 0x02000000,
  WPAD_PRO_STICK_R_EMULATION_DOWN = 0x01000000,
  WPAD_PRO_STICK_R_EMULATION_LEFT = 0x00400000,
  WPAD_PRO_STICK_R_EMULATION_RIGHT = 0x00800000
}
 

Functions

void WPADInit ()
 
void WPADShutdown ()
 
int32_t WPADProbe (WPADChan chan, WPADExtensionType *outExtensionType)
 
int32_t WPADSetDataFormat (WPADChan chan, WPADDataFormat format)
 
void WPADEnableURCC (int32_t enable)
 
void WPADEnableWiiRemote (int32_t enable)
 
void WPADRead (WPADChan chan, void *data)
 
void WPADSetAutoSleepTime (uint8_t time)
 
void WPADDisconnect (WPADChan chan)
 
WPADConnectCallback WPADSetConnectCallback (WPADChan chan, WPADConnectCallback callback)
 
WPADExtensionCallback WPADSetExtensionCallback (WPADChan chan, WPADExtensionCallback callback)
 
WPADSamplingCallback WPADSetSamplingCallback (WPADChan chan, WPADSamplingCallback callback)
 

Detailed Description


Data Structure Documentation

◆ WPADVec2D

struct WPADVec2D

Definition at line 106 of file wpad.h.

Data Fields
int16_t x
int16_t y

◆ WPADStatusProController

struct WPADStatusProController

Definition at line 115 of file wpad.h.

Data Fields
uint8_t extensionType A value from WPADExtensionType.
uint8_t err
uint32_t buttons
WPADVec2D leftStick
WPADVec2D rightStick
WPADDataFormat dataFormat

Typedef Documentation

◆ WPADStatusProController

Definition at line 13 of file wpad.h.

◆ WPADVec2D

typedef struct WPADVec2D WPADVec2D

Definition at line 14 of file wpad.h.

◆ WPADChan

typedef enum WPADChan WPADChan

◆ WPADDataFormat

◆ WPADExtensionType

◆ WPADButton

typedef enum WPADButton WPADButton

◆ WPADClassicButton

◆ WPADProButton

◆ WPADSamplingCallback

typedef void(* WPADSamplingCallback) (WPADChan chan)

Definition at line 138 of file wpad.h.

◆ WPADExtensionCallback

typedef void(* WPADExtensionCallback) (WPADChan chan, int32_t status)

Definition at line 139 of file wpad.h.

◆ WPADConnectCallback

typedef void(* WPADConnectCallback) (WPADChan chan, int32_t status)

Definition at line 140 of file wpad.h.

Enumeration Type Documentation

◆ WPADChan

enum WPADChan
Enumerator
WPAD_CHAN_0 
WPAD_CHAN_1 
WPAD_CHAN_2 
WPAD_CHAN_3 

Definition at line 16 of file wpad.h.

◆ WPADDataFormat

Enumerator
WPAD_FMT_PRO_CONTROLLER 

Definition at line 24 of file wpad.h.

◆ WPADExtensionType

Enumerator
WPAD_EXT_CORE 
WPAD_EXT_NUNCHUK 
WPAD_EXT_CLASSIC 
WPAD_EXT_MPLUS 
WPAD_EXT_MPLUS_NUNCHUK 
WPAD_EXT_MPLUS_CLASSIC 
WPAD_EXT_PRO_CONTROLLER 

Definition at line 29 of file wpad.h.

◆ WPADButton

enum WPADButton
Enumerator
WPAD_BUTTON_LEFT 
WPAD_BUTTON_RIGHT 
WPAD_BUTTON_DOWN 
WPAD_BUTTON_UP 
WPAD_BUTTON_PLUS 
WPAD_BUTTON_2 
WPAD_BUTTON_1 
WPAD_BUTTON_B 
WPAD_BUTTON_A 
WPAD_BUTTON_MINUS 
WPAD_BUTTON_Z 
WPAD_BUTTON_C 
WPAD_BUTTON_HOME 

Definition at line 40 of file wpad.h.

◆ WPADClassicButton

Enumerator
WPAD_CLASSIC_BUTTON_UP 
WPAD_CLASSIC_BUTTON_LEFT 
WPAD_CLASSIC_BUTTON_ZR 
WPAD_CLASSIC_BUTTON_X 
WPAD_CLASSIC_BUTTON_A 
WPAD_CLASSIC_BUTTON_Y 
WPAD_CLASSIC_BUTTON_B 
WPAD_CLASSIC_BUTTON_ZL 
WPAD_CLASSIC_BUTTON_R 
WPAD_CLASSIC_BUTTON_PLUS 
WPAD_CLASSIC_BUTTON_HOME 
WPAD_CLASSIC_BUTTON_MINUS 
WPAD_CLASSIC_BUTTON_L 
WPAD_CLASSIC_BUTTON_DOWN 
WPAD_CLASSIC_BUTTON_RIGHT 

Definition at line 57 of file wpad.h.

◆ WPADProButton

Enumerator
WPAD_PRO_BUTTON_UP 
WPAD_PRO_BUTTON_LEFT 
WPAD_PRO_TRIGGER_ZR 
WPAD_PRO_BUTTON_X 
WPAD_PRO_BUTTON_A 
WPAD_PRO_BUTTON_Y 
WPAD_PRO_BUTTON_B 
WPAD_PRO_TRIGGER_ZL 
WPAD_PRO_RESERVED 
WPAD_PRO_TRIGGER_R 
WPAD_PRO_BUTTON_PLUS 
WPAD_PRO_BUTTON_HOME 
WPAD_PRO_BUTTON_MINUS 
WPAD_PRO_TRIGGER_L 
WPAD_PRO_BUTTON_DOWN 
WPAD_PRO_BUTTON_RIGHT 
WPAD_PRO_BUTTON_STICK_R 
WPAD_PRO_BUTTON_STICK_L 
WPAD_PRO_STICK_L_EMULATION_UP 
WPAD_PRO_STICK_L_EMULATION_DOWN 
WPAD_PRO_STICK_L_EMULATION_LEFT 
WPAD_PRO_STICK_L_EMULATION_RIGHT 
WPAD_PRO_STICK_R_EMULATION_UP 
WPAD_PRO_STICK_R_EMULATION_DOWN 
WPAD_PRO_STICK_R_EMULATION_LEFT 
WPAD_PRO_STICK_R_EMULATION_RIGHT 

Definition at line 76 of file wpad.h.

Function Documentation

◆ WPADInit()

void WPADInit ( )

◆ WPADShutdown()

void WPADShutdown ( )

◆ WPADProbe()

int32_t WPADProbe ( WPADChan  chan,
WPADExtensionType outExtensionType 
)

◆ WPADSetDataFormat()

int32_t WPADSetDataFormat ( WPADChan  chan,
WPADDataFormat  format 
)

◆ WPADEnableURCC()

void WPADEnableURCC ( int32_t  enable)

◆ WPADEnableWiiRemote()

void WPADEnableWiiRemote ( int32_t  enable)

◆ WPADRead()

void WPADRead ( WPADChan  chan,
void *  data 
)

◆ WPADSetAutoSleepTime()

void WPADSetAutoSleepTime ( uint8_t  time)

◆ WPADDisconnect()

void WPADDisconnect ( WPADChan  chan)

◆ WPADSetConnectCallback()

WPADConnectCallback WPADSetConnectCallback ( WPADChan  chan,
WPADConnectCallback  callback 
)

◆ WPADSetExtensionCallback()

WPADExtensionCallback WPADSetExtensionCallback ( WPADChan  chan,
WPADExtensionCallback  callback 
)

◆ WPADSetSamplingCallback()

WPADSamplingCallback WPADSetSamplingCallback ( WPADChan  chan,
WPADSamplingCallback  callback 
)