diff options
Diffstat (limited to 'src/cat/CommandInterface.h')
| -rw-r--r-- | src/cat/CommandInterface.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cat/CommandInterface.h b/src/cat/CommandInterface.h index c77d83c..8cabdab 100644 --- a/src/cat/CommandInterface.h +++ b/src/cat/CommandInterface.h @@ -9,6 +9,7 @@ #define KITTY_H_ #include <string> +#include <SDL/SDL.h> //#include "game/GameModel.h" class GameModel; @@ -24,7 +25,13 @@ public: int GetParticleType(std::string type); void Log(LogType type, std::string message); //void AttachGameModel(GameModel * m); - virtual void Tick() {} + virtual bool OnMouseMove(int x, int y, int dx, int dy) {return true;} + virtual bool OnMouseDown(int x, int y, unsigned button) {return true;} + virtual bool OnMouseUp(int x, int y, unsigned button) {return true;} + virtual bool OnMouseWheel(int x, int y, int d) {return true;} + virtual bool OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt) {return true;} + virtual bool OnKeyRelease(int key, Uint16 character, bool shift, bool ctrl, bool alt) {return true;} + virtual void OnTick(float dt) {} virtual int Command(std::string command); virtual std::string FormatCommand(std::string command); std::string GetLastError(); |
