omegalib  13.1
wiimote_common.h File Reference

Classes

struct  wiimote_sample
 

Enumerations

enum  speaker_freq {
  FREQ_NONE = 0, FREQ_4200HZ = 1, FREQ_3920HZ = 2, FREQ_3640HZ = 3,
  FREQ_3360HZ = 4, FREQ_3130HZ = 5, FREQ_2940HZ = 6, FREQ_2760HZ = 7,
  FREQ_2610HZ = 8, FREQ_2470HZ = 9
}
 
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
}
 

Enumeration Type Documentation

Enumerator
FREQ_NONE 
FREQ_4200HZ 
FREQ_3920HZ 
FREQ_3640HZ 
FREQ_3360HZ 
FREQ_3130HZ 
FREQ_2940HZ 
FREQ_2760HZ 
FREQ_2610HZ 
FREQ_2470HZ 
Enumerator
NO_CHANGE 
WIIMOTE_CONNECTED 
CONNECTION_LOST 
BATTERY_CHANGED 
BATTERY_DRAINED 
LEDS_CHANGED 
BUTTONS_CHANGED 
ACCEL_CHANGED 
ORIENTATION_CHANGED 
IR_CHANGED 
WIIMOTE_CHANGED 
NUNCHUK_CONNECTED 
NUNCHUK_BUTTONS_CHANGED 
NUNCHUK_ACCEL_CHANGED 
NUNCHUK_ORIENTATION_CHANGED 
NUNCHUK_JOYSTICK_CHANGED 
NUNCHUK_CHANGED 
CLASSIC_CONNECTED 
CLASSIC_BUTTONS_CHANGED 
CLASSIC_JOYSTICK_L_CHANGED 
CLASSIC_JOYSTICK_R_CHANGED 
CLASSIC_TRIGGERS_CHANGED 
CLASSIC_CHANGED 
BALANCE_CONNECTED 
BALANCE_WEIGHT_CHANGED 
BALANCE_CHANGED 
MOTIONPLUS_DETECTED 
MOTIONPLUS_ENABLED 
MOTIONPLUS_SPEED_CHANGED 
MOTIONPLUS_EXTENSION_CONNECTED 
MOTIONPLUS_EXTENSION_DISCONNECTED 
MOTIONPLUS_CHANGED 
EXTENSION_DISCONNECTED 
EXTENSION_PARTIALLY_INSERTED 
EXTENSION_CONNECTED 
EXTENSION_CHANGED 
CHANGED_ALL