// // Copyright (C) 1996 Ben Ross // // You may distribute under the terms of the GNU General Public // License as specified in the COPYING file. // // $Id: XeKeyTable.h,v 1.6 2001/07/29 21:34:00 ben Exp $ #ifndef _XeKeyTable_H_ #define _XeKeyTable_H_ #include #include typedef void (*KeyFunc)(void* aux); class XeKeyTable : public __gnu_cxx::hash_map { public: XeKeyTable(int size = 64) : __gnu_cxx::hash_map(size) {} void* lookup(KeySym key, u_int& modifiers); int add(void* ob, KeySym key, u_int modifiers); void remove(KeySym key, u_int modifiers); }; // // PC Keyboard key modifier masks not explicity defined in X.h // #define XeNumLockMask Mod2Mask #define XeScrollLockMask Mod5Mask #endif