ML_input.h File Reference

This file contains input headers. More...

Data Structures

struct  Wii_WPad
 This structure is a part of the WPads struct. More...
struct  Wii_IR
 This structure is a part of the WPads struct. (IR/Cursor). More...
struct  Wii_GForce
 This structure is a part of the WPads, Nunchuks struct. (Gravity Force). More...
struct  Wii_Orientation
 This structure is a part of the WPads, Nunchuks structs. (Orientation). More...
struct  WPads
 This structure contains all the Wiimote features values. More...
struct  Nunchuk_Buttons
 This structure is a part of the Nunchuks struct. (Buttons). More...
struct  Joystick
 This structure is a part of the Nunchuks, CPads structs. (Joystick). More...
struct  Nunchuks
 This structure contains all the Nunchuk features values. More...
struct  CPad_Buttons
 This structure is a part of the CPads struct. More...
struct  CPads
 This structure contains all the Classic Controler features values. More...
struct  GH_Buttons
 This structure is a part of the GH struct. More...
struct  GH
 This structure contains all the Guitar Hero features values. More...
struct  GC_Pad
 This structure is a part of the GC_Pads struct. More...
struct  GC_Stick
 This structure is a part of the GC_Pads struct. More...
struct  GC_Sticks
 This structure is a part of the GC_Pads struct. More...
struct  GC_Pads
 This structure contains all the GC pads features values. More...

Functions

void ML_InitPad ()
 This function inits pads (Wii and GC).
void ML_SetNumberOfPads (u8 wiimotesNumber, u8 gc_padsNumber)
 This function sets the number of Wiimotes and GCN pads.
void ML_GetPads ()
 This function receives the pads (Wii and GC) status.
int ML_GetWiimoteExtension (u8 wpad)
 This function checks which Wiimote extension is connected.
bool ML_EnableNunchuk (u8 enabled)
 This function sets if the Nunchuk is enabled or not.
bool ML_EnableCPad (u8 enabled)
 This function sets if the Classic pad is enabled or not.
bool ML_EnableGuitar (u8 enabled)
 This function sets if the guitar of GH is enabled or not.
void ML_RumbleWiimote (s32 wpad, int enabled)
 This function rumbles the Wiimote if enabled.

Detailed Description

This file contains input headers.


Function Documentation

void ML_EnableCPad ( u8  enabled  ) 

This function sets if the Classic pad is enabled or not.

You can type 3 as "enabled", it will return if it's already enabled.

Parameters:
enabled Classic pad enabled (1) or not (0)
Returns:
1 if enabled, 0 if disabled.
void ML_EnableGuitar ( u8  enabled  ) 

This function sets if the guitar of GH is enabled or not.

You can type 3 as "enabled", it will return if it's already enabled.

Parameters:
enabled Guitar enabled (1) or not (0)
Returns:
1 if enabled, 0 if disabled
void ML_EnableNunchuk ( u8  enabled  ) 

This function sets if the Nunchuk is enabled or not.

You can type 3 as "enabled", it will return if it's already enabled.

Parameters:
enabled Nunchuk enabled (1) or not (0)
Returns:
1 if enabled, 0 if disabled
int ML_GetWiimoteExtension ( u8  wpad  ) 

This function checks which Wiimote extension is connected.

Parameters:
wpad Which wiimote
Returns:
WPAD_EXP_NONE if none; WPAD_EXP_NUNCHUK if nunchuk is connected; WPAD_EXP_CLASSIC if Classic Pad is connected; and so on...
void ML_RumbleWiimote ( s32  wpad,
int  enabled 
)

This function rumbles the Wiimote if enabled.

Parameters:
wpad Wiimote number (All Wiimotes : WPAD_CHAN_ALL)
enabled Enable rumble or not ? (Yes: 1 / No: 0)
void ML_SetNumberOfPads ( u8  wiimotesNumber,
u8  gc_padsNumber 
)

This function sets the number of Wiimotes and GCN pads.

Parameters:
wiimotesNumber Number of Wiimotes
gc_padsNumber Number of GCN pads
 All Data Structures Files Functions Variables Defines

Generated on Wed Jan 19 18:15:34 2011 for MLlib by  doxygen 1.6.1