Lines Matching refs:mods

89     xkb_mod_mask_t mods; /**< effective */  member
122 get_entry_for_mods(const struct xkb_key_type *type, xkb_mod_mask_t mods) in get_entry_for_mods() argument
126 type->entries[i].mods.mask == mods) in get_entry_for_mods()
136 xkb_mod_mask_t active_mods = state->components.mods & type->mods.mask; in get_entry_for_key_state()
343 state->set_mods = filter->action.mods.mods.mask; in xkb_filter_mod_set_new()
353 filter->action.mods.flags &= ~ACTION_LOCK_CLEAR; in xkb_filter_mod_set_func()
365 state->clear_mods = filter->action.mods.mods.mask; in xkb_filter_mod_set_func()
366 if (filter->action.mods.flags & ACTION_LOCK_CLEAR) in xkb_filter_mod_set_func()
367 state->components.locked_mods &= ~filter->action.mods.mods.mask; in xkb_filter_mod_set_func()
377 filter->action.mods.mods.mask); in xkb_filter_mod_lock_new()
378 state->set_mods |= filter->action.mods.mods.mask; in xkb_filter_mod_lock_new()
379 if (!(filter->action.mods.flags & ACTION_LOCK_NO_LOCK)) in xkb_filter_mod_lock_new()
380 state->components.locked_mods |= filter->action.mods.mods.mask; in xkb_filter_mod_lock_new()
399 state->clear_mods |= filter->action.mods.mods.mask; in xkb_filter_mod_lock_func()
400 if (!(filter->action.mods.flags & ACTION_LOCK_NO_UNLOCK)) in xkb_filter_mod_lock_func()
434 state->set_mods = filter->action.mods.mods.mask; in xkb_filter_mod_latch_new()
452 action->mods.flags == filter->action.mods.flags && in xkb_filter_mod_latch_func()
453 action->mods.mods.mask == filter->action.mods.mods.mask) { in xkb_filter_mod_latch_func()
455 if (filter->action.mods.flags & ACTION_LATCH_TO_LOCK) { in xkb_filter_mod_latch_func()
458 state->components.locked_mods |= filter->action.mods.mods.mask; in xkb_filter_mod_latch_func()
463 state->set_mods = filter->action.mods.mods.mask; in xkb_filter_mod_latch_func()
466 state->components.latched_mods &= ~filter->action.mods.mods.mask; in xkb_filter_mod_latch_func()
473 state->components.latched_mods &= ~filter->action.mods.mods.mask; in xkb_filter_mod_latch_func()
485 ((filter->action.mods.flags & ACTION_LOCK_CLEAR) && in xkb_filter_mod_latch_func()
486 (state->components.locked_mods & filter->action.mods.mods.mask) == in xkb_filter_mod_latch_func()
487 filter->action.mods.mods.mask)) { in xkb_filter_mod_latch_func()
492 ~filter->action.mods.mods.mask; in xkb_filter_mod_latch_func()
494 state->clear_mods = filter->action.mods.mods.mask; in xkb_filter_mod_latch_func()
495 state->components.locked_mods &= ~filter->action.mods.mods.mask; in xkb_filter_mod_latch_func()
500 state->clear_mods = filter->action.mods.mods.mask; in xkb_filter_mod_latch_func()
501 state->components.latched_mods |= filter->action.mods.mods.mask; in xkb_filter_mod_latch_func()
638 if (led->which_mods != 0 && led->mods.mask != 0) { in xkb_state_led_update_all()
640 mod_mask |= state->components.mods; in xkb_state_led_update_all()
648 if (led->mods.mask & mod_mask) { in xkb_state_led_update_all()
686 state->components.mods = (state->components.base_mods | in xkb_state_update_derived()
723 if (a->mods != b->mods) in get_state_component_changes()
1072 return state->components.mods; in xkb_state_serialize_mods()
1113 mod_mask_get_effective(struct xkb_keymap *keymap, xkb_mod_mask_t mods) in mod_mask_get_effective() argument
1120 mask = mods & MOD_REAL_MASK_ALL; in mod_mask_get_effective()
1122 xkb_mods_enumerate(i, mod, &keymap->mods) in mod_mask_get_effective()
1123 if (mods & (1u << i)) in mod_mask_get_effective()
1346 consumed = type->mods.mask; in key_get_consumed()
1367 if (entry == matching_entry || one_bit_set(entry->mods.mask)) in key_get_consumed()
1368 consumed |= entry->mods.mask & ~entry->preserve.mask; in key_get_consumed()