Function input_sys::libinput_event_tablet_tool_distance_has_changed [] [src]

pub unsafe extern "C" fn libinput_event_tablet_tool_distance_has_changed(
    event: *mut libinput_event_tablet_tool
) -> c_int

@ingroup event_tablet

Check if the distance axis was updated in this event. For events that are not of type @ref LIBINPUT_EVENT_TABLET_TOOL_AXIS, @ref LIBINPUT_EVENT_TABLET_TOOL_TIP, or @ref LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY, this function returns 0. For tablet tool events of type @ref LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY, this function always returns 1.

@note It is an application bug to call this function for events other than @ref LIBINPUT_EVENT_TABLET_TOOL_AXIS, @ref LIBINPUT_EVENT_TABLET_TOOL_TIP, or @ref LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY, or @ref LIBINPUT_EVENT_TABLET_TOOL_BUTTON.

@param event The libinput tablet tool event @return 1 if the axis was updated or 0 otherwise