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