mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed macros in Wii.h as well
This commit is contained in:
parent
6ea34f955e
commit
0b2e444e7b
1 changed files with 3 additions and 3 deletions
6
Wii.h
6
Wii.h
|
@ -30,9 +30,9 @@
|
|||
#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)
|
||||
#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))
|
||||
|
||||
/** Enum used to read the joystick on the Nunchuck. */
|
||||
enum Hat {
|
||||
|
|
Loading…
Reference in a new issue