Function input_sys::libinput_event_gesture_get_dy [] [src]

pub unsafe extern fn libinput_event_gesture_get_dy(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 @ref motion_normalization for more details.

@return the relative y movement since the last event