Function libinput_event_touch_get_y_transformed
pub unsafe extern "C" fn libinput_event_touch_get_y_transformed(
event: *mut libinput_event_touch,
height: u32,
) -> f64
Expand description
@ingroup event_touch
Return the current absolute y coordinate of the touch event, transformed to screen coordinates.
For events not of type @ref LIBINPUT_EVENT_TOUCH_DOWN, @ref LIBINPUT_EVENT_TOUCH_MOTION, this function returns 0.
@note It is an application bug to call this function for events of type other than @ref LIBINPUT_EVENT_TOUCH_DOWN or @ref LIBINPUT_EVENT_TOUCH_MOTION.
@param event The libinput touch event @param height The current output screen height @return The current absolute y coordinate transformed to a screen coordinate