Function input_sys::libinput_event_tablet_tool_get_distance[][src]

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

@ingroup event_tablet

Returns the current distance from the tablet’s sensor, normalized to the range [0, 1].

If this axis does not exist on the current tool, this function returns 0.

@param event The libinput tablet tool event @return The current value of the the axis

@since 1.2