Function input_sys::libinput_tablet_tool_get_tool_id[][src]

pub unsafe extern "C" fn libinput_tablet_tool_get_tool_id(
    tool: *mut libinput_tablet_tool
) -> u64
Expand description

@ingroup event_tablet

Return the tool ID for a tool object. If nonzero, this number identifies the specific type of the tool with more precision than the type returned in libinput_tablet_tool_get_type(). Not all tablets support a tool ID.

Tablets known to support tool IDs include the Wacom Intuos 3, 4, 5, Wacom Cintiq and Wacom Intuos Pro series. The tool ID can be used to distinguish between e.g. a Wacom Classic Pen or a Wacom Pro Pen. It is the caller’s responsibility to interpret the tool ID.

@param tool The libinput tool @return The tool ID for this tool object or 0 if none is provided

@see libinput_tablet_tool_get_type

@since 1.2