Lines Matching defs:keysym
43 #include <X11/keysym.h>
111 KeySym keysym = XKeycodeToKeysym(display, code, 0);
113 if (keyc2scan[code] == 0 && keysym != 0)
115 if ((keysym >> 8) == 0xFF) /* non-character key */
116 scan = nonchar_key_scan[keysym & 0xff];
117 else if ((keysym >> 8) == 0x1008FF) /* XFree86 vendor keys */
118 scan = xfree86_vendor_key_scan[keysym & 0xff];
119 else if ((keysym >> 8) == 0x1005FF) /* Sun keys */
120 scan = sun_key_scan[keysym & 0xff];
121 else if (keysym == 0x20) /* Spacebar */
123 else if (keysym == 0xFE03) /* ISO level3 shift, aka AltGr */
125 else if (keysym == 0xFE11) /* ISO level5 shift, R-Ctrl on */
158 /** Table for the current keycode to keysym mapping. */
163 /* Fill in our keycode to keysym mapping table. */
167 KeySym keysym = XKeycodeToKeysym (display, keyc, 0);
171 if ( (0xFF != (keysym >> 8)) /* Non-character key */
172 && (0x1008FF != (keysym >> 8)) /* XFree86 vendor keys */
173 && (0x1005FF != (keysym >> 8)) /* Sun keys */
174 && (0x20 != keysym) /* Spacebar */
175 && (0xFE03 != keysym) /* ISO level3 shift, aka AltGr */
177 ckey[keyc][0] = keysym & 0xFF;
183 possible to our current keycode to keysym mapping. */
243 LOG_KB_2(("Mismatch for keycode %d, keysym \"%s\" (0x%.2hx 0x%.2hx)\n",
293 KeySym keysym;
328 keysym = XKeycodeToKeysym(display, keyc, 0);
330 if (keysym) /* otherwise, keycode not used */
333 if ( (0xFF != (keysym >> 8)) /* Non-character key */
334 && (0x1008FF != (keysym >> 8)) /* XFree86 vendor keys */
335 && (0x1005FF != (keysym >> 8)) /* Sun keys */
336 && (0x20 != keysym) /* Spacebar */
337 && (0xFE03 != keysym) /* ISO level3 shift, aka AltGr */
342 char unshifted = keysym & 0xFF;
371 LOG_KB_1(("No match found for keycode %d, keysym \"%s\" (0x%x 0x%x)\n",
382 LOG_KB_1(("Warning - keycode %d, keysym \"%s\" (0x%x 0x%x) was matched to scancode %d\n",