Lines Matching refs:keysym
44 uint16_t keysym; member
840 bin_search(const struct codepair *table, size_t length, xkb_keysym_t keysym) in bin_search() argument
845 if (keysym < table[0].keysym || keysym > table[length].keysym) in bin_search()
851 if (table[mid].keysym < keysym) in bin_search()
853 else if (table[mid].keysym > keysym) in bin_search()
864 xkb_keysym_to_utf32(xkb_keysym_t keysym) in xkb_keysym_to_utf32() argument
867 if ((keysym >= 0x0020 && keysym <= 0x007e) || in xkb_keysym_to_utf32()
868 (keysym >= 0x00a0 && keysym <= 0x00ff)) in xkb_keysym_to_utf32()
869 return keysym; in xkb_keysym_to_utf32()
872 if (keysym == XKB_KEY_KP_Space) in xkb_keysym_to_utf32()
876 if ((keysym >= XKB_KEY_BackSpace && keysym <= XKB_KEY_Clear) || in xkb_keysym_to_utf32()
877 (keysym >= XKB_KEY_KP_Multiply && keysym <= XKB_KEY_KP_9) || in xkb_keysym_to_utf32()
878 keysym == XKB_KEY_Return || keysym == XKB_KEY_Escape || in xkb_keysym_to_utf32()
879 keysym == XKB_KEY_Delete || keysym == XKB_KEY_KP_Tab || in xkb_keysym_to_utf32()
880 keysym == XKB_KEY_KP_Enter || keysym == XKB_KEY_KP_Equal) in xkb_keysym_to_utf32()
881 return keysym & 0x7f; in xkb_keysym_to_utf32()
884 if ((keysym & 0xff000000) == 0x01000000) in xkb_keysym_to_utf32()
885 return keysym & 0x00ffffff; in xkb_keysym_to_utf32()
888 return bin_search(keysymtab, ARRAY_SIZE(keysymtab) - 1, keysym); in xkb_keysym_to_utf32()
917 xkb_keysym_to_utf8(xkb_keysym_t keysym, char *buffer, size_t size) in xkb_keysym_to_utf8() argument
924 codepoint = xkb_keysym_to_utf32(keysym); in xkb_keysym_to_utf8()