Lines Matching refs:display
108 unsigned X11DRV_KeyEvent(Display *display, KeyCode code)
111 KeySym keysym = XKeycodeToKeysym(display, code, 0);
141 * @param display pointer to the X11 display handle
146 X11DRV_KEYBOARD_DetectLayout (Display *display, unsigned min_keycode,
167 KeySym keysym = XKeycodeToKeysym (display, keyc, 0);
178 ckey[keyc][1] = XKeycodeToKeysym(display, keyc, 1) & 0xFF;
288 * @param display a pointer to the X11 display
291 X11DRV_InitKeyboardByLayout(Display *display)
309 XDisplayKeycodes(display, &min_keycode, &max_keycode);
319 kbd_layout = X11DRV_KEYBOARD_DetectLayout(display, min_keycode,
328 keysym = XKeycodeToKeysym(display, keyc, 0);
343 char shifted = XKeycodeToKeysym(display, keyc, 1) & 0xFF;
506 X11DRV_InitKeyboardByType(Display *display)
511 hostKB.lctrl = XKeysymToKeycode(display, XK_Control_L);
512 hostKB.capslock = XKeysymToKeycode(display, XK_Caps_Lock);
513 hostKB.lshift = XKeysymToKeycode(display, XK_Shift_L);
514 hostKB.tab = XKeysymToKeycode(display, XK_Tab);
515 hostKB.esc = XKeysymToKeycode(display, XK_Escape);
516 hostKB.enter = XKeysymToKeycode(display, XK_Return);
517 hostKB.up = XKeysymToKeycode(display, XK_Up);
518 hostKB.down = XKeysymToKeycode(display, XK_Down);
519 hostKB.left = XKeysymToKeycode(display, XK_Left);
520 hostKB.right = XKeysymToKeycode(display, XK_Right);
521 hostKB.f1 = XKeysymToKeycode(display, XK_F1);
522 hostKB.f2 = XKeysymToKeycode(display, XK_F2);
523 hostKB.f3 = XKeysymToKeycode(display, XK_F3);
524 hostKB.f4 = XKeysymToKeycode(display, XK_F4);
525 hostKB.f5 = XKeysymToKeycode(display, XK_F5);
526 hostKB.f6 = XKeysymToKeycode(display, XK_F6);
527 hostKB.f7 = XKeysymToKeycode(display, XK_F7);
528 hostKB.f8 = XKeysymToKeycode(display, XK_F8);
612 * @param display a pointer to the X11 display
626 unsigned X11DRV_InitKeyboard(Display *display, unsigned *byLayoutOK,
632 byLayout = X11DRV_InitKeyboardByLayout(display);
636 byType = X11DRV_InitKeyboardByType(display);
640 byXkb = X11DRV_InitKeyboardByXkb(display);
648 X11DRV_InitKeyboardByType(display);
650 X11DRV_InitKeyboardByLayout(display);