7 class ControleWii
: public Controle
{
9 cwiid_wiimote_t
*wiimote
; /* wiimote handle */
10 struct cwiid_state state
; /* wiimote state */
11 bdaddr_t bdaddr
; /* bluetooth device address */
13 unsigned char led_state
;
14 unsigned char rpt_mode
;
16 unsigned int buttonsWii
;
17 unsigned int buttonsNunchuck
;
21 ControleWii(Player
&p
);
22 bool initializeWiimote();
23 virtual void handleEvent(SDL_Event
&e
);
24 virtual void handleOther();
25 Ponto lastSeenAt
[CWIID_IR_SRC_COUNT
];
26 int cyclesSinceSeen
[CWIID_IR_SRC_COUNT
];