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

Data Structures

struct  KPADVec2D
 
struct  KPADStatus
 
union  KPADStatus.__unnamed__
 
struct  KPADStatus.__unnamed__.nunchuck
 
struct  KPADStatus.__unnamed__.classic
 
struct  KPADStatus.__unnamed__.pro
 

Typedefs

typedef enum WPADChan KPADChan
 
typedef enum WPADDataFormat KPADDataFormat
 
typedef enum WPADExtensionType KPADExtensionType
 
typedef struct KPADStatus KPADStatus
 
typedef struct KPADVec2D KPADVec2D
 
typedef enum KPADError KPADError
 

Enumerations

enum  KPADError { KPAD_ERROR_OK = 0 }
 

Functions

void KPADInit ()
 
int32_t KPADRead (KPADChan chan, KPADStatus *data, uint32_t size)
 
int32_t KPADReadEx (KPADChan chan, KPADStatus *data, uint32_t size, int32_t *error)
 

Detailed Description


Data Structure Documentation

◆ KPADVec2D

struct KPADVec2D

Definition at line 26 of file kpad.h.

Data Fields
float x
float y

◆ KPADStatus

struct KPADStatus

Definition at line 35 of file kpad.h.

Data Fields
uint32_t hold Indicates what KPADButtons are held down.
uint32_t trigger Indicates what KPADButtons have been pressed since last sample.
uint32_t release Indicates what KPADButtons have been released since last sample.
KPADVec2D pos
KPADVec2D angle
uint8_t extensionType Value from KPADExtensionType.
int8_t error Value from KPADError.
uint8_t posValid
uint8_t format Value from KPADDataFormat.
union KPADStatus __unnamed__

◆ KPADStatus.__unnamed__

union KPADStatus.__unnamed__

Definition at line 68 of file kpad.h.

Data Fields
__unnamed__ nunchuck
__unnamed__ classic
__unnamed__ pro

◆ KPADStatus.__unnamed__.nunchuck

struct KPADStatus.__unnamed__.nunchuck

Definition at line 71 of file kpad.h.

Data Fields
KPADVec2D stick

◆ KPADStatus.__unnamed__.classic

struct KPADStatus.__unnamed__.classic

Definition at line 77 of file kpad.h.

Data Fields
uint32_t hold
uint32_t trigger
uint32_t release
KPADVec2D leftStick
KPADVec2D rightStick
float leftTrigger
float rightTrigger

◆ KPADStatus.__unnamed__.pro

struct KPADStatus.__unnamed__.pro

Definition at line 89 of file kpad.h.

Data Fields
uint32_t hold
uint32_t trigger
uint32_t release
KPADVec2D leftStick
KPADVec2D rightStick
int32_t charging
int32_t wired

Typedef Documentation

◆ KPADChan

typedef enum WPADChan KPADChan

Definition at line 14 of file kpad.h.

◆ KPADDataFormat

Definition at line 15 of file kpad.h.

◆ KPADExtensionType

Definition at line 16 of file kpad.h.

◆ KPADStatus

typedef struct KPADStatus KPADStatus

Definition at line 18 of file kpad.h.

◆ KPADVec2D

typedef struct KPADVec2D KPADVec2D

Definition at line 19 of file kpad.h.

◆ KPADError

typedef enum KPADError KPADError

Enumeration Type Documentation

◆ KPADError

enum KPADError
Enumerator
KPAD_ERROR_OK 

Definition at line 21 of file kpad.h.

Function Documentation

◆ KPADInit()

void KPADInit ( )

◆ KPADRead()

int32_t KPADRead ( KPADChan  chan,
KPADStatus data,
uint32_t  size 
)

◆ KPADReadEx()

int32_t KPADReadEx ( KPADChan  chan,
KPADStatus data,
uint32_t  size,
int32_t *  error 
)