Home
last modified time | relevance | path

Searched refs:base_mods (Results 1 – 2 of 2) sorted by relevance

/external/libxkbcommon/src/
Dstate.c86 xkb_mod_mask_t base_mods; /**< depressed */ member
642 mod_mask |= state->components.base_mods; in xkb_state_led_update_all()
686 state->components.mods = (state->components.base_mods | in xkb_state_update_derived()
725 if (a->base_mods != b->base_mods) in get_state_component_changes()
763 state->components.base_mods |= bit; in xkb_state_update_key()
772 state->components.base_mods &= ~bit; in xkb_state_update_key()
793 xkb_mod_mask_t base_mods, in xkb_state_update_mask() argument
808 state->components.base_mods = base_mods & mask; in xkb_state_update_mask()
826 state->components.base_mods |= in xkb_state_update_mask()
827 mod_mask_get_effective(state->keymap, state->components.base_mods); in xkb_state_update_mask()
[all …]
/external/libxkbcommon/test/
Dstate.c252 xkb_mod_mask_t base_mods; in test_serialisation() local
272 base_mods = xkb_state_serialize_mods(state, XKB_STATE_MODS_DEPRESSED); in test_serialisation()
273 assert(base_mods == 0); in test_serialisation()
282 base_mods = xkb_state_serialize_mods(state, XKB_STATE_MODS_DEPRESSED); in test_serialisation()
283 assert(base_mods == (1U << shift)); in test_serialisation()
289 assert(effective_mods == (base_mods | locked_mods)); in test_serialisation()
291 base_mods |= (1U << ctrl); in test_serialisation()
292 xkb_state_update_mask(state, base_mods, latched_mods, locked_mods, in test_serialisation()