enum | state_change_flags {
NO_CHANGE = 0,
WIIMOTE_CONNECTED = 1<<0,
CONNECTION_LOST = 1<<1,
BATTERY_CHANGED = 1<<2,
BATTERY_DRAINED = 1<<3,
LEDS_CHANGED = 1<<4,
BUTTONS_CHANGED = 1<<5,
ACCEL_CHANGED = 1<<6,
ORIENTATION_CHANGED = 1<<7,
IR_CHANGED = 1<<8,
WIIMOTE_CHANGED,
NUNCHUK_CONNECTED = 1<<9,
NUNCHUK_BUTTONS_CHANGED = 1<<10,
NUNCHUK_ACCEL_CHANGED = 1<<11,
NUNCHUK_ORIENTATION_CHANGED = 1<<12,
NUNCHUK_JOYSTICK_CHANGED = 1<<13,
NUNCHUK_CHANGED,
CLASSIC_CONNECTED = 1<<14,
CLASSIC_BUTTONS_CHANGED = 1<<15,
CLASSIC_JOYSTICK_L_CHANGED = 1<<16,
CLASSIC_JOYSTICK_R_CHANGED = 1<<17,
CLASSIC_TRIGGERS_CHANGED = 1<<18,
CLASSIC_CHANGED,
BALANCE_CONNECTED = 1<<19,
BALANCE_WEIGHT_CHANGED = 1<<20,
BALANCE_CHANGED = BALANCE_CONNECTED|BALANCE_WEIGHT_CHANGED,
MOTIONPLUS_DETECTED = 1<<21,
MOTIONPLUS_ENABLED = 1<<22,
MOTIONPLUS_SPEED_CHANGED = 1<<23,
MOTIONPLUS_EXTENSION_CONNECTED = 1<<24,
MOTIONPLUS_EXTENSION_DISCONNECTED = 1<<25,
MOTIONPLUS_CHANGED,
EXTENSION_DISCONNECTED = 1<<26,
EXTENSION_PARTIALLY_INSERTED = 1<<27,
EXTENSION_CONNECTED,
EXTENSION_CHANGED,
CHANGED_ALL = WIIMOTE_CHANGED|EXTENSION_CHANGED
} |