summaryrefslogtreecommitdiffstats
path: root/EventHandler.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-02-15 23:44:03 +0100
committerneoraider <devnull@localhost>2008-02-15 23:44:03 +0100
commit77b187b8eba7598fb6154da5d3d62ad0920eac15 (patch)
treeaa5c147510fe6c6c8b0b8433380dafbf3d0d60a7 /EventHandler.h
parent0ea1d388651217697d49029820b02b4f002f1ac0 (diff)
downloadzoomedit-77b187b8eba7598fb6154da5d3d62ad0920eac15.tar
zoomedit-77b187b8eba7598fb6154da5d3d62ad0920eac15.zip
zoomedit: Changed some interfaces.
Diffstat (limited to 'EventHandler.h')
-rw-r--r--EventHandler.h10
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_*/