Function input_sys::libinput_dispatch[][src]

pub unsafe extern "C" fn libinput_dispatch(
    libinput: *mut libinput
) -> c_int
Expand description

@ingroup base

Main event dispatchment function. Reads events of the file descriptors and processes them internally. Use libinput_get_event() to retrieve the events.

Dispatching does not necessarily queue libinput events. This function should be called immediately once data is available on the file descriptor returned by libinput_get_fd(). libinput has a number of timing-sensitive features (e.g. tap-to-click), any delay in calling libinput_dispatch() may prevent these features from working correctly.

@param libinput A previously initialized libinput context

@return 0 on success, or a negative errno on failure