Lines Matching refs:keySym
101 KeySym keySym)
108 if (type == KeyPress && keySym == 0xffe3) {
111 else if (type == KeyRelease && keySym == 0xffe3) {
114 else if (type == KeyPress && keySym == 0xffe9) {
117 else if (type == KeyRelease && keySym == 0xffe9) {
130 DMXDBG3("dmxCheckFunctionKeys: keySym=0x%04x %s state=0x%04x\n",
131 keySym, type == KeyPress ? "press" : "release", state);
137 switch (keySym) {
602 DMXDBG2("dmxKeyCodeToKeySym: Translated keyCode=%d to keySym=0x%04x\n",
609 static KeyCode dmxKeySymToKeyCode(DMXLocalInputInfoPtr dmxLocal, KeySym keySym,
622 * pKeySyms->mapWidth] == keySym)
627 * pKeySyms->mapWidth] == keySym) {
628 DMXDBG3("dmxKeySymToKeyCode: Translated keySym=0x%04x to"
629 " keyCode=%d (reverses to core keySym=0x%04x)\n",
630 keySym, i, dmxKeyCodeToKeySym(dmxLocalCoreKeyboard,i));
637 static int dmxFixup(DevicePtr pDev, int detail, KeySym keySym)
647 if (!keySym)
648 keySym = dmxKeyCodeToKeySym(dmxLocal, detail);
649 if (keySym == NoSymbol)
651 keyCode = dmxKeySymToKeyCode(dmxLocalCoreKeyboard, keySym, detail);
658 * KeyRelease event, then the \a keySym is also specified.
664 void dmxEnqueue(DevicePtr pDev, int type, int detail, KeySym keySym,
679 if (!keySym)
680 keySym = dmxKeyCodeToKeySym(dmxLocal, detail);
681 if (dmxCheckFunctionKeys(dmxLocal, type, keySym))
684 xE.u.u.detail = dmxFixup(pDev, detail, keySym);
687 /*ErrorF("KEY %d sym %d\n", detail, (int) keySym);*/
748 int dmxCheckSpecialKeys(DevicePtr pDev, KeySym keySym)
761 DMXDBG2("dmxCheckSpecialKeys: keySym=0x%04x state=0x%04x\n", keySym,state);
765 switch (keySym) {
776 vt = keySym - XK_F1 + 1;
781 vt = keySym - XK_F11 + 11;