Lines Matching refs:keysym
86 #include <X11/keysym.h>
185 static KeyCode get_typical_char ( XETC *tc , CARD32 keysym);
186 static KeyCode get_keycode ( XETC *tc , KeySym keysym);
376 KeySym keysym = 0;
382 case 'A': keysym = XK_Up; break;
383 case 'B': keysym = XK_Down; break;
384 case 'C': keysym = XK_Right; break;
385 case 'D': keysym = XK_Left; break;
392 case 1: keysym = XK_Find; break;
393 case 2: keysym = XK_Insert; break;
395 case 3: keysym = DXK_Remove; break;
397 case 4: keysym = XK_Select; break;
398 case 5: keysym = XK_Prior; break;
399 case 6: keysym = XK_Next; break;
400 case 17: keysym = XK_F6; break;
401 case 18: keysym = XK_F7; break;
402 case 19: keysym = XK_F8; break;
403 case 20: keysym = XK_F9; break;
404 case 21: keysym = XK_F10; break;
405 case 23: keysym = XK_F11; break;
406 case 24: keysym = XK_F12; break;
407 case 25: keysym = XK_F13; break;
408 case 26: keysym = XK_F14; break;
409 case 28: keysym = XK_Help; break;
410 case 29: keysym = XK_Menu; break;
411 case 31: keysym = XK_F17; break;
412 case 32: keysym = XK_F18; break;
413 case 33: keysym = XK_F19; break;
414 case 34: keysym = XK_F20; break;
420 return(get_keycode(tc, keysym));
623 KeySym keysym = 0;
629 case 'A': keysym = XK_Up; break;
630 case 'B': keysym = XK_Down; break;
631 case 'C': keysym = XK_Right; break;
632 case 'D': keysym = XK_Left; break;
633 case 'p': keysym = XK_KP_0; break;
634 case 'q': keysym = XK_KP_1; break;
635 case 'r': keysym = XK_KP_2; break;
636 case 's': keysym = XK_KP_3; break;
637 case 't': keysym = XK_KP_4; break;
638 case 'u': keysym = XK_KP_5; break;
639 case 'v': keysym = XK_KP_6; break;
640 case 'w': keysym = XK_KP_7; break;
641 case 'x': keysym = XK_KP_8; break;
642 case 'y': keysym = XK_KP_9; break;
643 case 'm': keysym = XK_KP_Subtract; break;
644 case 'l': keysym = XK_KP_Separator; break;
645 case 'n': keysym = XK_KP_Decimal; break;
646 case 'M': keysym = XK_KP_Enter; break;
647 case 'P': keysym = XK_KP_F1; break;
648 case 'Q': keysym = XK_KP_F2; break;
649 case 'R': keysym = XK_KP_F3; break;
650 case 'S': keysym = XK_KP_F4; break;
659 return(get_keycode(tc, keysym));
662 static KeyCode get_typical_char(XETC *tc, CARD32 keysym)
664 if (iscntrl(keysym))
666 switch(keysym)
668 case 0x09: keysym = XK_Tab; break;
669 case 0x0d: keysym = XK_Return; break;
670 case 0x7f: keysym = XK_Delete; break;
671 case ESC: keysym = XK_Escape; break;
674 passive_shift = (keysym >= XK_A && keysym <= XK_Z) ? TRUE : FALSE;
675 switch(keysym)
684 if (keysym >= 1 && keysym <= 26)
687 keysym += 'a' - 1;
694 return(get_keycode(tc, keysym));
697 static KeyCode get_keycode(XETC *tc, KeySym keysym)
699 char *keystr = (char *)XKeysymToString(keysym);
723 if (!(keycode = XKeysymToKeycode(tc->dpy,keysym)))
726 keystr, (unsigned int)keysym);