Last change
on this file since 9723 was
9723,
checked in by georgr, 11 years ago
|
New way to output insulting messages \o/
|
File size:
875 bytes
|
Line | |
---|
1 | |
---|
2 | #include "InputDevice.h" |
---|
3 | //#include "InputState.h" |
---|
4 | //#include "InputManager.h" |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | namespace orxonox |
---|
9 | { |
---|
10 | class WiiMote : public InputDevice |
---|
11 | { |
---|
12 | public: |
---|
13 | //! Only resets the members |
---|
14 | WiiMote(unsigned int id); |
---|
15 | ~WiiMote() { } |
---|
16 | //! Returns the device class (derived) name as string |
---|
17 | std::string getClassName() const {return deviceName;} |
---|
18 | //! Updates the device which should in turn distribute events |
---|
19 | void update(const Clock& time); |
---|
20 | //! Clear all button related buffers |
---|
21 | void clearBuffers(); |
---|
22 | |
---|
23 | protected: |
---|
24 | void calibrationStarted() { } |
---|
25 | void calibrationStopped() { } |
---|
26 | //! List of all input states that receive events from this device |
---|
27 | std::vector<InputState*> inputStates_; |
---|
28 | private: |
---|
29 | static const std::string deviceName; |
---|
30 | void test(int x, int y); |
---|
31 | }; |
---|
32 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.