Lines Matching refs:dispatch
474 fallback_debounce_handle_state(struct fallback_dispatch *dispatch, in fallback_debounce_handle_state() argument
485 if (hw_key_has_changed(dispatch, code)) in fallback_debounce_handle_state()
497 changed[0] != dispatch->debounce.button_code) { in fallback_debounce_handle_state()
498 debounce_handle_event(dispatch, in fallback_debounce_handle_state()
512 bool is_down = hw_is_key_down(dispatch, changed[i]); in fallback_debounce_handle_state()
515 dispatch->debounce.state != DEBOUNCE_STATE_DISABLED) { in fallback_debounce_handle_state()
516 debounce_set_state(dispatch, in fallback_debounce_handle_state()
523 dispatch->debounce.button_code = changed[i]; in fallback_debounce_handle_state()
524 debounce_handle_event(dispatch, in fallback_debounce_handle_state()
533 debounce_handle_event(dispatch, in fallback_debounce_handle_state()
546 struct fallback_dispatch *dispatch = in debounce_timeout() local
547 fallback_dispatch(device->dispatch); in debounce_timeout()
549 debounce_handle_event(dispatch, DEBOUNCE_EVENT_TIMEOUT, now); in debounce_timeout()
556 struct fallback_dispatch *dispatch = in debounce_timeout_short() local
557 fallback_dispatch(device->dispatch); in debounce_timeout_short()
559 debounce_handle_event(dispatch, DEBOUNCE_EVENT_TIMEOUT_SHORT, now); in debounce_timeout_short()
563 fallback_init_debounce(struct fallback_dispatch *dispatch) in fallback_init_debounce() argument
565 struct evdev_device *device = dispatch->device; in fallback_init_debounce()
569 dispatch->debounce.state = DEBOUNCE_STATE_DISABLED; in fallback_init_debounce()
573 dispatch->debounce.state = DEBOUNCE_STATE_IS_UP; in fallback_init_debounce()
579 libinput_timer_init(&dispatch->debounce.timer_short, in fallback_init_debounce()
589 libinput_timer_init(&dispatch->debounce.timer, in fallback_init_debounce()