Function input_sys::libinput_event_pointer_get_dx[][src]

pub unsafe extern "C" fn libinput_event_pointer_get_dx(
    event: *mut libinput_event_pointer
) -> f64
Expand description

@ingroup event_pointer

Return the delta between the last event and the current event. For pointer events that are not of type @ref LIBINPUT_EVENT_POINTER_MOTION, this function returns 0.

If a device employs pointer acceleration, the delta returned by this function is the accelerated delta.

Relative motion deltas are to be interpreted as pixel movement of a standardized mouse. See the libinput documentation for more details.

@note It is an application bug to call this function for events other than @ref LIBINPUT_EVENT_POINTER_MOTION.

@return The relative x movement since the last event