1 #ifndef NOXKEYMAP_H
2 #define NOXKEYMAP_H
3 
4 /* Fake a few X11 calls */
5 
6 #define XK_MISCELLANY
7 #include <rfb/rfb.h>
8 #include <rfb/keysym.h>
9 
10 #define NoSymbol 0L
11 #define ShiftMask               (1<<0)
12 #define LockMask                (1<<1)
13 #define ControlMask             (1<<2)
14 #define Mod1Mask                (1<<3)
15 #define Mod2Mask                (1<<4)
16 #define Mod3Mask                (1<<5)
17 #define Mod4Mask                (1<<6)
18 #define Mod5Mask                (1<<7)
19 #define Button1                 1
20 #define Button2                 2
21 #define Button3                 3
22 #define Button4                 4
23 #define Button5                 5
24 
25 typedef int Display;
26 typedef int Window;
27 typedef rfbKeySym KeySym;
28 
29 KeySym XStringToKeysym(const char *str);
30 const char *XKeysymToString(KeySym keysym);
31 void XDisplayKeycodes(Display * display, int *min_keycode, int *max_keycode);
32 
33 #endif
34