summaryrefslogtreecommitdiff
path: root/include/engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/engine.h')
-rw-r--r--include/engine.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/engine.h b/include/engine.h
index 6a88154..6dbd990 100644
--- a/include/engine.h
+++ b/include/engine.h
@@ -15,20 +15,18 @@ namespace mogltk {
public:
keyevent();
virtual ~keyevent();
- virtual void down(SDL_keysym);
- virtual void up(SDL_keysym);
+ virtual void down(SDL_keysym) = 0;
+ virtual void up(SDL_keysym) = 0;
protected:
- void passdown(SDL_keysym);
keyevent * old_handler, * new_handler;
};
class mouseevent : public Base {
public:
mouseevent();
virtual ~mouseevent();
- virtual void move(SDL_MouseMotionEvent);
- virtual void action(SDL_MouseButtonEvent);
+ virtual void move(SDL_MouseMotionEvent) = 0;
+ virtual void action(SDL_MouseButtonEvent) = 0;
protected:
- void passdown(SDL_MouseMotionEvent);
mouseevent * old_handler, * new_handler;
};
static int setup() throw(GeneralException);