[][src]Function input_sys::libinput_event_tablet_tool_get_slider_position

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

@ingroup event_tablet

Returns the current position of the slider on the tool, normalized to the range [-1, 1]. The logical zero is the neutral position of the slider, or the logical center of the axis. This axis is available on e.g. the Wacom Airbrush.

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