Constant input_sys::libinput_event_type_LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY[][src]

pub const libinput_event_type_LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY: libinput_event_type = 601;
Expand description

Signals that a tool has come in or out of proximity of a device with the @ref LIBINPUT_DEVICE_CAP_TABLET_TOOL capability.

Proximity events contain each of the current values for each axis, and these values may be extracted from them in the same way they are with @ref LIBINPUT_EVENT_TABLET_TOOL_AXIS events.

Some tools may always be in proximity. For these tools, events of type @ref LIBINPUT_TABLET_TOOL_PROXIMITY_STATE_IN are sent only once after @ref LIBINPUT_EVENT_DEVICE_ADDED, and events of type @ref LIBINPUT_TABLET_TOOL_PROXIMITY_STATE_OUT are sent only once before @ref LIBINPUT_EVENT_DEVICE_REMOVED.

If the tool that comes into proximity supports x/y coordinates, libinput guarantees that both x and y are set in the proximity event.

When a tool goes out of proximity, the value of every axis should be assumed to have an undefined state and any buttons that are currently held down on the stylus are marked as released. Button release events for each button that was held down on the stylus are sent before the proximity out event.

@since 1.2