[][src]Function input_sys::libinput_event_gesture_get_dx

pub unsafe extern "C" fn libinput_event_gesture_get_dx(
    event: *mut libinput_event_gesture
) -> f64

@ingroup event_gesture

Return the delta between the last event and the current event. For gesture events that are not of type @ref LIBINPUT_EVENT_GESTURE_SWIPE_UPDATE or @ref LIBINPUT_EVENT_GESTURE_PINCH_UPDATE, this function returns 0.

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

Relative motion deltas are normalized to represent those of a device with 1000dpi resolution. See the libinput documentation for more details.

@return the relative x movement since the last event