00001 00002 #ifndef GLUT_KBD_H 00003 #define GLUT_KBD_H 00004 00005 #include "std/support.H" 00006 #include "dev/dev.H" 00007 class GLUT_WINSYS; 00008 class GLUT_KBD { 00009 protected: 00010 GLUT_WINSYS *_winsys; 00011 static ARRAY<GLUT_KBD *> _kbds; 00012 bool _shift; 00013 bool _ctrl; 00014 public: 00015 GLUT_KBD(GLUT_WINSYS *winsys); 00016 static GLUT_KBD *kbd(); 00017 GLUT_WINSYS *winsys() { return _winsys; } 00018 00019 // Send any modifier (shift/ctrl) change events 00020 void update_mods(mlib::CXYpt &cur); 00021 }; 00022 00023 #endif 00024 00025 /* end of file kbd.H */