Lines Matching refs:dispatch
484 fallback_debounce_handle_state(struct fallback_dispatch *dispatch,
495 if (hw_key_has_changed(dispatch, code))
507 changed[0] != dispatch->debounce.button_code) {
508 debounce_handle_event(dispatch,
522 bool is_down = hw_is_key_down(dispatch, changed[i]);
525 dispatch->debounce.state != DEBOUNCE_STATE_DISABLED) {
526 debounce_set_state(dispatch,
533 dispatch->debounce.button_code = changed[i];
534 debounce_handle_event(dispatch,
543 debounce_handle_event(dispatch,
556 struct fallback_dispatch *dispatch =
557 fallback_dispatch(device->dispatch);
559 debounce_handle_event(dispatch, DEBOUNCE_EVENT_TIMEOUT, now);
566 struct fallback_dispatch *dispatch =
567 fallback_dispatch(device->dispatch);
569 debounce_handle_event(dispatch, DEBOUNCE_EVENT_TIMEOUT_SHORT, now);
573 fallback_init_debounce(struct fallback_dispatch *dispatch)
575 struct evdev_device *device = dispatch->device;
579 dispatch->debounce.state = DEBOUNCE_STATE_DISABLED;
583 dispatch->debounce.state = DEBOUNCE_STATE_IS_UP;
589 libinput_timer_init(&dispatch->debounce.timer_short,
599 libinput_timer_init(&dispatch->debounce.timer,