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

Go to the source code of this file.

Classes

struct  _KPADData
 

Typedefs

typedef struct _KPADData KPADData
 
typedef s32 WPADChannel
 
typedef s8 WPADError
 
typedef void(* WPADConnectCallback) (WPADChannel channel, WPADError reason)
 

Enumerations

enum  { WPAD_CHAN0 = 0, WPAD_CHAN1 = 1, WPAD_CHAN2 = 2, WPAD_CHAN3 = 3 }
 
enum  {
  WPAD_ERROR_NONE = 0, WPAD_ERROR_NO_CONTROLLER = -1, WPAD_ERROR_BUSY = -2, WPAD_ERROR_TRANSFER = -3,
  WPAD_ERROR_INVALID = -4, WPAD_ERROR_NOPERM = -5, WPAD_ERROR_BROKEN = -6, WPAD_ERROR_CORRUPTED = -7
}
 

Functions

void KPADInit (void)
 
void KPADShutdown (void)
 
s32 KPADRead (s32 chan, void *data, u32 size)
 
s32 KPADReadEx (s32 chan, KPADData *data, u32 size, s32 *error)
 

Typedef Documentation

◆ KPADData

typedef struct _KPADData KPADData

◆ WPADChannel

typedef s32 WPADChannel

◆ WPADConnectCallback

typedef void(* WPADConnectCallback) (WPADChannel channel, WPADError reason)

◆ WPADError

typedef s8 WPADError

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
WPAD_CHAN0 
WPAD_CHAN1 
WPAD_CHAN2 
WPAD_CHAN3 

◆ anonymous enum

anonymous enum
Enumerator
WPAD_ERROR_NONE 
WPAD_ERROR_NO_CONTROLLER 
WPAD_ERROR_BUSY 
WPAD_ERROR_TRANSFER 
WPAD_ERROR_INVALID 
WPAD_ERROR_NOPERM 
WPAD_ERROR_BROKEN 
WPAD_ERROR_CORRUPTED 

Function Documentation

◆ KPADInit()

void KPADInit ( void  )
Here is the caller graph for this function:

◆ KPADRead()

s32 KPADRead ( s32  chan,
void data,
u32  size 
)
Here is the caller graph for this function:

◆ KPADReadEx()

s32 KPADReadEx ( s32  chan,
KPADData data,
u32  size,
s32 error 
)

◆ KPADShutdown()

void KPADShutdown ( void  )
Here is the caller graph for this function: