Lines Matching defs:state

39 			     enum libinput_key_state state)
43 down_count = evdev_update_key_down_count(device, key, state);
45 if ((state == LIBINPUT_KEY_STATE_PRESSED && down_count == 1) ||
46 (state == LIBINPUT_KEY_STATE_RELEASED && down_count == 0))
47 keyboard_notify_key(&device->base, time, key, state);
69 enum libinput_button_state state)
71 evdev_pointer_notify_physical_button(device, time, button, state);
88 return dispatch->tablet_mode.sw.state ?
127 assert(!"invalid scroll button state");
547 slot->state = SLOT_STATE_BEGIN;
567 slot->state = SLOT_STATE_END;
650 "failed to write SW_LID state (%s)",
653 /* In case write() fails, we sync the lid state manually
707 enum libinput_switch_state state;
725 if (dispatch->tablet_mode.sw.state == e->value)
728 dispatch->tablet_mode.sw.state = e->value;
730 state = LIBINPUT_SWITCH_STATE_ON;
732 state = LIBINPUT_SWITCH_STATE_OFF;
736 state);
814 if (dispatch->arbitration.state == ARBITRATION_IGNORE_RECT &&
838 /* Any palm state other than PALM_NEW means we've either
843 if (slot->state != SLOT_STATE_BEGIN)
850 switch (slot->state) {
877 /* State machine continues independent of the palm state */
878 switch (slot->state) {
880 slot->state = SLOT_STATE_UPDATE;
885 slot->state = SLOT_STATE_NONE;
890 * in NONE state */
1151 /* For the initial state sync, we depend on whether the lid switch
1153 * If we're not sure, we ignore the initial state and only sync on
1155 * that always have the switch in 'on' state thus don't mess up our
1164 if (dispatch->tablet_mode.sw.state) {
1199 const char *state = NULL;
1201 if (which == dispatch->arbitration.state)
1215 state = "not-active";
1222 state = "ignore-rect";
1228 state = "ignore-all";
1232 evdev_log_debug(device, "Touch arbitration state now %s\n", state);
1234 dispatch->arbitration.state = which;
1286 * reported state is closed. */
1625 dispatch->tablet_mode.sw.state = val;