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

Go to the source code of this file.

Classes

struct  WPADReadData_
 

Macros

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

Typedefs

typedef struct WPADReadData_ WPADReadData
 
typedef void(* wpad_sampling_callback_t) (s32 chan)
 
typedef void(* wpad_extension_callback_t) (s32 chan, s32 status)
 
typedef void(* wpad_connect_callback_t) (s32 chan, s32 status)
 

Functions

s32 WPADProbe (s32 chan, u32 *pad_type)
 
s32 WPADSetDataFormat (s32 chan, s32 format)
 
void WPADEnableURCC (s32 enable)
 
void WPADEnableWiiRemote (s32 enable)
 
void WPADRead (s32 chan, void *data)
 

Macro Definition Documentation

◆ WPAD_BUTTON_1

#define WPAD_BUTTON_1   0x0200

◆ WPAD_BUTTON_2

#define WPAD_BUTTON_2   0x0100

◆ WPAD_BUTTON_A

#define WPAD_BUTTON_A   0x0800

◆ WPAD_BUTTON_B

#define WPAD_BUTTON_B   0x0400

◆ WPAD_BUTTON_C

#define WPAD_BUTTON_C   0x4000

◆ WPAD_BUTTON_DOWN

#define WPAD_BUTTON_DOWN   0x0004

◆ WPAD_BUTTON_HOME

#define WPAD_BUTTON_HOME   0x8000

◆ WPAD_BUTTON_LEFT

#define WPAD_BUTTON_LEFT   0x0001

◆ WPAD_BUTTON_MINUS

#define WPAD_BUTTON_MINUS   0x1000

◆ WPAD_BUTTON_PLUS

#define WPAD_BUTTON_PLUS   0x0010

◆ WPAD_BUTTON_RIGHT

#define WPAD_BUTTON_RIGHT   0x0002

◆ WPAD_BUTTON_UP

#define WPAD_BUTTON_UP   0x0008

◆ WPAD_BUTTON_Z

#define WPAD_BUTTON_Z   0x2000

◆ WPAD_CLASSIC_BUTTON_A

#define WPAD_CLASSIC_BUTTON_A   0x0010

◆ WPAD_CLASSIC_BUTTON_B

#define WPAD_CLASSIC_BUTTON_B   0x0040

◆ WPAD_CLASSIC_BUTTON_DOWN

#define WPAD_CLASSIC_BUTTON_DOWN   0x4000

◆ WPAD_CLASSIC_BUTTON_HOME

#define WPAD_CLASSIC_BUTTON_HOME   0x0800

◆ WPAD_CLASSIC_BUTTON_L

#define WPAD_CLASSIC_BUTTON_L   0x2000

◆ WPAD_CLASSIC_BUTTON_LEFT

#define WPAD_CLASSIC_BUTTON_LEFT   0x0002

◆ WPAD_CLASSIC_BUTTON_MINUS

#define WPAD_CLASSIC_BUTTON_MINUS   0x1000

◆ WPAD_CLASSIC_BUTTON_PLUS

#define WPAD_CLASSIC_BUTTON_PLUS   0x0400

◆ WPAD_CLASSIC_BUTTON_R

#define WPAD_CLASSIC_BUTTON_R   0x0200

◆ WPAD_CLASSIC_BUTTON_RIGHT

#define WPAD_CLASSIC_BUTTON_RIGHT   0x8000

◆ WPAD_CLASSIC_BUTTON_UP

#define WPAD_CLASSIC_BUTTON_UP   0x0001

◆ WPAD_CLASSIC_BUTTON_X

#define WPAD_CLASSIC_BUTTON_X   0x0008

◆ WPAD_CLASSIC_BUTTON_Y

#define WPAD_CLASSIC_BUTTON_Y   0x0020

◆ WPAD_CLASSIC_BUTTON_ZL

#define WPAD_CLASSIC_BUTTON_ZL   0x0080

◆ WPAD_CLASSIC_BUTTON_ZR

#define WPAD_CLASSIC_BUTTON_ZR   0x0004

◆ WPAD_EXT_CLASSIC

#define WPAD_EXT_CLASSIC   2

◆ WPAD_EXT_CORE

#define WPAD_EXT_CORE   0

◆ WPAD_EXT_MPLUS

#define WPAD_EXT_MPLUS   5

◆ WPAD_EXT_MPLUS_CLASSIC

#define WPAD_EXT_MPLUS_CLASSIC   7

◆ WPAD_EXT_MPLUS_NUNCHUK

#define WPAD_EXT_MPLUS_NUNCHUK   6

◆ WPAD_EXT_NUNCHUK

#define WPAD_EXT_NUNCHUK   1

◆ WPAD_EXT_PRO_CONTROLLER

#define WPAD_EXT_PRO_CONTROLLER   31

◆ WPAD_FMT_PRO_CONTROLLER

#define WPAD_FMT_PRO_CONTROLLER   22

◆ WPAD_PRO_BUTTON_A

#define WPAD_PRO_BUTTON_A   0x00000010

◆ WPAD_PRO_BUTTON_B

#define WPAD_PRO_BUTTON_B   0x00000040

◆ WPAD_PRO_BUTTON_DOWN

#define WPAD_PRO_BUTTON_DOWN   0x00004000

◆ WPAD_PRO_BUTTON_HOME

#define WPAD_PRO_BUTTON_HOME   0x00000800

◆ WPAD_PRO_BUTTON_LEFT

#define WPAD_PRO_BUTTON_LEFT   0x00000002

◆ WPAD_PRO_BUTTON_MINUS

#define WPAD_PRO_BUTTON_MINUS   0x00001000

◆ WPAD_PRO_BUTTON_PLUS

#define WPAD_PRO_BUTTON_PLUS   0x00000400

◆ WPAD_PRO_BUTTON_RIGHT

#define WPAD_PRO_BUTTON_RIGHT   0x00008000

◆ WPAD_PRO_BUTTON_STICK_L

#define WPAD_PRO_BUTTON_STICK_L   0x00020000

◆ WPAD_PRO_BUTTON_STICK_R

#define WPAD_PRO_BUTTON_STICK_R   0x00010000

◆ WPAD_PRO_BUTTON_UP

#define WPAD_PRO_BUTTON_UP   0x00000001

◆ WPAD_PRO_BUTTON_X

#define WPAD_PRO_BUTTON_X   0x00000008

◆ WPAD_PRO_BUTTON_Y

#define WPAD_PRO_BUTTON_Y   0x00000020

◆ WPAD_PRO_RESERVED

#define WPAD_PRO_RESERVED   0x00000100

◆ WPAD_PRO_STICK_L_EMULATION_DOWN

#define WPAD_PRO_STICK_L_EMULATION_DOWN   0x00100000

◆ WPAD_PRO_STICK_L_EMULATION_LEFT

#define WPAD_PRO_STICK_L_EMULATION_LEFT   0x00040000

◆ WPAD_PRO_STICK_L_EMULATION_RIGHT

#define WPAD_PRO_STICK_L_EMULATION_RIGHT   0x00080000

◆ WPAD_PRO_STICK_L_EMULATION_UP

#define WPAD_PRO_STICK_L_EMULATION_UP   0x00200000

◆ WPAD_PRO_STICK_R_EMULATION_DOWN

#define WPAD_PRO_STICK_R_EMULATION_DOWN   0x01000000

◆ WPAD_PRO_STICK_R_EMULATION_LEFT

#define WPAD_PRO_STICK_R_EMULATION_LEFT   0x00400000

◆ WPAD_PRO_STICK_R_EMULATION_RIGHT

#define WPAD_PRO_STICK_R_EMULATION_RIGHT   0x00800000

◆ WPAD_PRO_STICK_R_EMULATION_UP

#define WPAD_PRO_STICK_R_EMULATION_UP   0x02000000

◆ WPAD_PRO_TRIGGER_L

#define WPAD_PRO_TRIGGER_L   0x00002000

◆ WPAD_PRO_TRIGGER_R

#define WPAD_PRO_TRIGGER_R   0x00000200

◆ WPAD_PRO_TRIGGER_ZL

#define WPAD_PRO_TRIGGER_ZL   0x00000080

◆ WPAD_PRO_TRIGGER_ZR

#define WPAD_PRO_TRIGGER_ZR   0x00000004

Typedef Documentation

◆ wpad_connect_callback_t

typedef void(* wpad_connect_callback_t) (s32 chan, s32 status)

◆ wpad_extension_callback_t

typedef void(* wpad_extension_callback_t) (s32 chan, s32 status)

◆ wpad_sampling_callback_t

typedef void(* wpad_sampling_callback_t) (s32 chan)

◆ WPADReadData

typedef struct WPADReadData_ WPADReadData

Function Documentation

◆ WPADEnableURCC()

void WPADEnableURCC ( s32  enable)
Here is the caller graph for this function:

◆ WPADEnableWiiRemote()

void WPADEnableWiiRemote ( s32  enable)
Here is the caller graph for this function:

◆ WPADProbe()

s32 WPADProbe ( s32  chan,
u32 pad_type 
)
Here is the caller graph for this function:

◆ WPADRead()

void WPADRead ( s32  chan,
void data 
)

◆ WPADSetDataFormat()

s32 WPADSetDataFormat ( s32  chan,
s32  format 
)