Agora pode ficar abaixado enquanto tenta descer chao impassavel
[Projeto-PCG.git] / controlewii.h
blob98e6bd9b1b72592fe408d9de0c99b83aa6037309
1 #ifndef CONTROLEWII_H
2 #define CONTROLEWII_H
4 #include "controle.h"
5 #include <cwiid.h>
7 class ControleWii: public Controle {
8 private:
9 cwiid_wiimote_t *wiimote; /* wiimote handle */
10 struct cwiid_state state; /* wiimote state */
11 bdaddr_t bdaddr; /* bluetooth device address */
12 unsigned char mesg;
13 unsigned char led_state;
14 unsigned char rpt_mode;
15 unsigned char rumble;
16 unsigned int buttonsWii;
17 unsigned int buttonsNunchuck;
18 int stickX;
19 int stickY;
20 public:
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];
27 bool connected;
31 #endif