Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wiimote/src/libraries/core/input/WiiMote.h @ 9790

Last change on this file since 9790 was 9790, checked in by georgr, 11 years ago

debug outputs added

File size: 933 bytes
Line 
1
2#include "InputDevice.h"
3//#include "InputManager.h"
4
5#include <wiicpp/wiicpp/wiicpp.h>
6
7
8
9namespace orxonox
10{
11
12
13
14
15        class WiiMote : public InputDevice
16        {
17
18         public:
19                        //! Only resets the members
20                WiiMote(unsigned int id, CWiimote & parent);
21                ~WiiMote() { }
22                //! Returns the device class (derived) name as string
23                std::string getClassName() const {return deviceName;}
24                //! Updates the device which should in turn distribute events
25                void update(const Clock& time);
26                //! Clear all button related buffers
27                void clearBuffers();
28
29         protected:
30                 void calibrationStarted() { }
31                 void calibrationStopped() { }
32                 //! List of all input states that receive events from this device
33                 std::vector<InputState*> inputStates_;
34
35         private:
36                 static const std::string deviceName;
37                 void test(int x, int y);
38                 CWiimote * p;
39        };
40};
Note: See TracBrowser for help on using the repository browser.