This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-zoomedit/EventHandler.h
2008-02-15 22:44:03 +00:00

17 lines
468 B
C++

#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_*/