blob: 7676de17a3ac9dbab03bab0714a48ba10cce0b77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef EVENTHANDLER_H_
#define EVENTHANDLER_H_
#include "Vertex.h"
class EventHandler {
public:
virtual ~EventHandler() {}
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_*/
|