| 1 | // controloptions.h |
| 2 | // |
| 3 | // (c) Robert Schuster, 2007 |
| 4 | // |
| 5 | // Licensed under GNU GPL version 2 or, at your option, any later version. |
| 6 | |
| 7 | #ifndef CONTROLOPTIONS_H |
| 8 | #define CONTROLOPTION_H |
| 9 | |
| 10 | #include <map> |
| 11 | |
| 12 | #include "input.h" |
| 13 | |
| 14 | class MenuAction; |
| 15 | class Main; |
| 16 | |
| 17 | class ControlOptions |
| 18 | { |
| 19 | |
| 20 | Main &main; |
| 21 | |
| 22 | std::map < GameAction, MenuAction *> controlActions; |
| 23 | |
| 24 | public: |
| 25 | ControlOptions(Main &); |
| 26 | |
| 27 | MenuAction *getControlAction(GameAction); |
| 28 | |
| 29 | void startSensing(); |
| 30 | |
| 31 | void finishSensing(GameAction, bool); |
| 32 | |
| 33 | void reset(GameAction); |
| 34 | }; |
| 35 | |
| 36 | #endif |