diff options
Diffstat (limited to 'EventHandler.h')
-rw-r--r-- | EventHandler.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/EventHandler.h b/EventHandler.h index dabb25b..7676de1 100644 --- a/EventHandler.h +++ b/EventHandler.h @@ -1,13 +1,17 @@ #ifndef EVENTHANDLER_H_ #define EVENTHANDLER_H_ +#include "Vertex.h" + + class EventHandler { public: virtual ~EventHandler() {} - virtual bool buttonPress(unsigned int button) {return false;} - virtual bool buttonRelease(unsigned int button) {return false;} - virtual bool motion() {return false;} + virtual bool buttonPress(unsigned int button, const Vertex *v) {return false;} + virtual bool buttonRelease(unsigned int button, const Vertex *v) {return false;} + virtual bool motion(const Vertex *v) {return false;} + virtual bool motion(const Vertex *v, float scale) {return motion(v);} }; #endif /*EVENTHANDLER_H_*/ |