00001 #ifndef GLUT_MOUSE_H 00002 #define GLUT_MOUSE_H 00003 00004 #include "std/support.H" 00005 #include "dev/dev.H" 00006 00007 class GLUT_WINSYS; 00008 class GLUT_MOUSE : public Mouse { 00009 protected: 00010 GLUT_WINSYS *_winsys; 00011 static ARRAY<GLUT_MOUSE *> _mice; 00012 00013 public: 00014 GLUT_MOUSE(GLUT_WINSYS *); 00015 ~GLUT_MOUSE(); 00016 virtual void set_size(int, int) { 00017 cerr << "WARNING: dummy GLUT_MOUSE::set_size() called" << endl; 00018 } 00019 GLUT_WINSYS *winsys() { return _winsys; } 00020 static GLUT_MOUSE *mouse(); 00021 }; 00022 00023 00024 class GLUT_CURSpush : public DEVhandler { 00025 protected : 00026 GLUT_WINSYS * _win; 00027 00028 public : 00029 00030 GLUT_CURSpush(GLUT_WINSYS *win) : _win(win) { } 00031 00032 virtual void handle_event( CEvd &e ); 00033 virtual void push ( mlib::CXYpt &); 00034 }; 00035 00036 00037 #endif