Update wiiuse.h
Fix compile time error in WIIUSE_GET_IR_SENSITIVITY. Thanks to @Squareys for bringing this up by filing #46. I so dislike C preprocessor macros...
This commit is contained in:
@@ -294,7 +294,7 @@ typedef enum ir_position_t {
|
||||
* @param lvl [out] Pointer to an int that will hold the level setting.
|
||||
* If no level is set 'lvl' will be set to 0.
|
||||
*/
|
||||
#define WIIUSE_GET_IR_SENSITIVITY(dev, lvl) \
|
||||
#define WIIUSE_GET_IR_SENSITIVITY(wm, lvl) \
|
||||
do { \
|
||||
if ((wm->state & 0x0200) == 0x0200) *lvl = 1; \
|
||||
else if ((wm->state & 0x0400) == 0x0400) *lvl = 2; \
|
||||
|
||||
Reference in New Issue
Block a user