Function input_sys::libinput_event_tablet_tool_get_proximity_state [] [src]

pub unsafe extern "C" fn libinput_event_tablet_tool_get_proximity_state(
    event: *mut libinput_event_tablet_tool
) -> libinput_tablet_tool_proximity_state

@ingroup event_tablet

Returns the new proximity state of a tool from a proximity event. Used to check whether or not a tool came in or out of proximity during an event of type @ref LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY.

See @ref tablet-fake-proximity for recommendations on proximity handling.

@param event The libinput tablet tool event @return The new proximity state of the tool from the event.