Lines Matching defs:keysym
36 #include <X11/keysym.h>
86 /* Free the key_translation_entry for a given keysym and remove from the table */
88 delete_key_translation_entry(KeySym keysym)
97 hash = keysym & KEYMAP_MASK;
105 if (ptr->keysym == keysym)
125 new_key_translation_entry(KeySym keysym)
131 delete_key_translation_entry(keysym);
136 entry->keysym = keysym;
139 hash = keysym & KEYMAP_MASK;
146 /* Retrieve the key_translation_entry for a given keysym */
148 get_key_translation_entry(uint32 keysym)
153 ptr = keymap[keysym & KEYMAP_MASK];
158 if (ptr->keysym == keysym)
171 KeySym keysym;
174 keysym = XStringToKeysym(keyname);
175 if (keysym == NoSymbol)
177 DEBUG_KBD(("Bad keysym \"%s\" in keymap %s (ignoring)\n", keyname, mapname));
181 DEBUG_KBD(("Adding translation, keysym=0x%x, scancode=0x%x, "
182 "modifiers=0x%x\n", (unsigned int) keysym, scancode, modifiers));
185 entry = new_key_translation_entry(keysym);
199 KeySym keysym;
210 /* Fetch the keysym name */
215 keysym = XStringToKeysym(keyname);
216 if (keysym == NoSymbol)
218 DEBUG_KBD(("Bad keysym \"%s\" in keymap %s (ignoring line)\n", keyname, mapname));
222 DEBUG_KBD(("Adding sequence for keysym (0x%lx, %s) -> ", keysym, keyname));
224 entry = new_key_translation_entry(keysym);
233 /* Fetch the keysym name */
245 DEBUG_KBD(("Bad keysym \"%s\" in keymap %s (ignoring line)\n", keyname,
247 delete_key_translation_entry(keysym);
614 set_keypress_keysym(unsigned int keycode, KeySym keysym)
618 keypress_keysyms[keycode] = keysym;
623 reset_keypress_keysym(unsigned int keycode, KeySym keysym)
627 return keysym;
635 ks = keysym;
644 handle_special_keys(uint32 keysym, unsigned int state, uint32 ev_time, RD_BOOL pressed)
646 switch (keysym)
794 xkeymap_translate_key(uint32 keysym, unsigned int keycode, unsigned int state)
800 entry = get_key_translation_entry(keysym);
846 warning("No translation for (keysym 0x%lx, %s)\n", keysym,
847 get_ksname(keysym));
896 xkeymap_send_keys(uint32 keysym, unsigned int keycode, unsigned int state, uint32 ev_time,
900 tr = xkeymap_translate_key(keysym, keycode, state);
921 DEBUG_KBD(("Handling sequence element, keysym=0x%x\n",
959 get_ksname(uint32 keysym)
963 if (keysym == NoSymbol)
965 else if (!(ksname = XKeysymToString(keysym)))