Revision 61b0791a include/amiro/bluetooth/bluetooth-wiimote.hpp

View differences:

include/amiro/bluetooth/bluetooth-wiimote.hpp
33 33
    };
34 34
    Accelerometer *getAccelerometer();
35 35

  
36
    struct Buttons {
37
      uint16_t left : 1;
38
      uint16_t right : 1;
39
      uint16_t down : 1;
40
      uint16_t up : 1;
41
      uint16_t plus : 1;
42
      uint16_t two : 1;
43
      uint16_t one : 1;
44
      uint16_t B : 1;
45
      uint16_t A : 1;
46
      uint16_t minus : 1;
47
      uint16_t home : 1;
48
    };
49
    Buttons* getButtons();
50

  
36 51
  protected:
37 52
    virtual msg_t main(void);
38 53

  
......
50 65
    uint8_t stopflag;
51 66

  
52 67
    Accelerometer accelerometer;
68
    Buttons buttons;
53 69
  };
54 70
}
55 71

  

Also available in: Unified diff