USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Enumerations
Wii.h File Reference
#include "BTD.h"
#include "controllerEnums.h"
Include dependency graph for Wii.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WII
 

Macros

#define WII_FLAG_MOTION_PLUS_CONNECTED   0x01
 
#define WII_FLAG_NUNCHUCK_CONNECTED   0x02
 
#define wii_check_flag(flag)   (wii_event_flag & (flag))
 
#define wii_set_flag(flag)   (wii_event_flag |= (flag))
 
#define wii_clear_flag(flag)   (wii_event_flag &= ~(flag))
 

Enumerations

enum  HatEnum { HatX = 0, HatY = 1 }
 

Macro Definition Documentation

#define WII_FLAG_MOTION_PLUS_CONNECTED   0x01

Definition at line 27 of file Wii.h.

#define WII_FLAG_NUNCHUCK_CONNECTED   0x02

Definition at line 28 of file Wii.h.

#define wii_check_flag (   flag)    (wii_event_flag & (flag))

Definition at line 30 of file Wii.h.

#define wii_set_flag (   flag)    (wii_event_flag |= (flag))

Definition at line 31 of file Wii.h.

#define wii_clear_flag (   flag)    (wii_event_flag &= ~(flag))

Definition at line 32 of file Wii.h.

Enumeration Type Documentation

enum HatEnum

Enum used to read the joystick on the Nunchuck.

Enumerator
HatX 

Read the x-axis on the Nunchuck joystick.

HatY 

Read the y-axis on the Nunchuck joystick.

Definition at line 35 of file Wii.h.