Function input_sys::libinput_event_pointer_get_dy_unaccelerated[][src]

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

@ingroup event_pointer

Return the relative delta of the unaccelerated motion vector of the current event. For pointer events that are not of type @ref LIBINPUT_EVENT_POINTER_MOTION, this function returns 0.

Relative unaccelerated motion deltas are raw device coordinates. Note that these coordinates are subject to the device’s native resolution. Touchpad coordinates represent raw device coordinates in the X resolution of the touchpad. See the libinput documentation for more details.

Any rotation applied to the device also applies to unaccelerated motion (see libinput_device_config_rotation_set_angle()).

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

@return The unaccelerated relative y movement since the last event