00001 #pragma once 00002 00021 #ifndef __MOUSEKEYHANDLER_H 00022 #define __MOUSEKEYHANDLER_H 00023 00024 00025 #pragma once 00026 #include "cvd/image.h" 00027 00028 class MouseKeyHandler 00029 { 00030 public: 00031 // default constructors 00032 inline MouseKeyHandler() {}; 00033 inline ~MouseKeyHandler(void) {}; 00034 virtual inline void on_key_down(int key) {}; 00035 virtual inline void on_mouse_move(CVD::ImageRef where, int state) {}; 00036 virtual inline void on_mouse_down(CVD::ImageRef where, int state, int button) {}; 00037 virtual inline void on_event(int event) {}; 00038 }; 00039 #endif /* __MOUSEKEYHANDLER_H */