Lines Matching refs:kc
145 xkb_state_key_get_level(struct xkb_state *state, xkb_keycode_t kc, in xkb_state_key_get_level() argument
148 const struct xkb_key *key = XkbKey(state->keymap, kc); in xkb_state_key_get_level()
204 xkb_state_key_get_layout(struct xkb_state *state, xkb_keycode_t kc) in xkb_state_key_get_layout() argument
206 const struct xkb_key *key = XkbKey(state->keymap, kc); in xkb_state_key_get_layout()
742 xkb_state_update_key(struct xkb_state *state, xkb_keycode_t kc, in xkb_state_update_key() argument
748 const struct xkb_key *key = XkbKey(state->keymap, kc); in xkb_state_update_key()
847 xkb_state_key_get_syms(struct xkb_state *state, xkb_keycode_t kc, in xkb_state_key_get_syms() argument
853 layout = xkb_state_key_get_layout(state, kc); in xkb_state_key_get_syms()
857 level = xkb_state_key_get_level(state, kc, layout); in xkb_state_key_get_syms()
861 return xkb_keymap_key_get_syms_by_level(state->keymap, kc, layout, level, in xkb_state_key_get_syms()
873 should_do_caps_transformation(struct xkb_state *state, xkb_keycode_t kc) in should_do_caps_transformation() argument
880 xkb_state_mod_index_is_consumed(state, kc, caps) == 0; in should_do_caps_transformation()
887 should_do_ctrl_transformation(struct xkb_state *state, xkb_keycode_t kc) in should_do_ctrl_transformation() argument
894 xkb_state_mod_index_is_consumed(state, kc, ctrl) == 0; in should_do_ctrl_transformation()
920 xkb_state_key_get_one_sym(struct xkb_state *state, xkb_keycode_t kc) in xkb_state_key_get_one_sym() argument
926 num_syms = xkb_state_key_get_syms(state, kc, &syms); in xkb_state_key_get_one_sym()
932 if (should_do_caps_transformation(state, kc)) in xkb_state_key_get_one_sym()
948 get_one_sym_for_string(struct xkb_state *state, xkb_keycode_t kc) in get_one_sym_for_string() argument
956 layout = xkb_state_key_get_layout(state, kc); in get_one_sym_for_string()
957 num_layouts = xkb_keymap_num_layouts_for_key(state->keymap, kc); in get_one_sym_for_string()
958 level = xkb_state_key_get_level(state, kc, layout); in get_one_sym_for_string()
963 nsyms = xkb_keymap_key_get_syms_by_level(state->keymap, kc, in get_one_sym_for_string()
969 if (should_do_ctrl_transformation(state, kc) && sym > 127u) { in get_one_sym_for_string()
971 level = xkb_state_key_get_level(state, kc, i); in get_one_sym_for_string()
975 nsyms = xkb_keymap_key_get_syms_by_level(state->keymap, kc, in get_one_sym_for_string()
984 if (should_do_caps_transformation(state, kc)) { in get_one_sym_for_string()
992 xkb_state_key_get_utf8(struct xkb_state *state, xkb_keycode_t kc, in xkb_state_key_get_utf8() argument
1001 sym = get_one_sym_for_string(state, kc); in xkb_state_key_get_utf8()
1006 nsyms = xkb_state_key_get_syms(state, kc, &syms); in xkb_state_key_get_utf8()
1030 should_do_ctrl_transformation(state, kc)) in xkb_state_key_get_utf8()
1047 xkb_state_key_get_utf32(struct xkb_state *state, xkb_keycode_t kc) in xkb_state_key_get_utf32() argument
1052 sym = get_one_sym_for_string(state, kc); in xkb_state_key_get_utf32()
1055 if (cp <= 127u && should_do_ctrl_transformation(state, kc)) in xkb_state_key_get_utf32()
1378 xkb_state_mod_index_is_consumed2(struct xkb_state *state, xkb_keycode_t kc, in xkb_state_mod_index_is_consumed2() argument
1382 const struct xkb_key *key = XkbKey(state->keymap, kc); in xkb_state_mod_index_is_consumed2()
1391 xkb_state_mod_index_is_consumed(struct xkb_state *state, xkb_keycode_t kc, in xkb_state_mod_index_is_consumed() argument
1394 return xkb_state_mod_index_is_consumed2(state, kc, idx, in xkb_state_mod_index_is_consumed()
1399 xkb_state_mod_mask_remove_consumed(struct xkb_state *state, xkb_keycode_t kc, in xkb_state_mod_mask_remove_consumed() argument
1402 const struct xkb_key *key = XkbKey(state->keymap, kc); in xkb_state_mod_mask_remove_consumed()
1411 xkb_state_key_get_consumed_mods2(struct xkb_state *state, xkb_keycode_t kc, in xkb_state_key_get_consumed_mods2() argument
1426 key = XkbKey(state->keymap, kc); in xkb_state_key_get_consumed_mods2()
1434 xkb_state_key_get_consumed_mods(struct xkb_state *state, xkb_keycode_t kc) in xkb_state_key_get_consumed_mods() argument
1436 return xkb_state_key_get_consumed_mods2(state, kc, XKB_CONSUMED_MODE_XKB); in xkb_state_key_get_consumed_mods()