Input.Tablet_toolA tool being used by a device with the Device.Capability.t.Tablet_tool capability.
Tablet events generated by such a device are bound to a specific tool rather than coming from the device directly. Depending on the hardware it is possible to track the same physical tool across multiple Device.t devices. See get_serial for more details.
module Type : sig ... endval get_tool_id : t -> int64 optionget_tool_id t returns the tool ID for a tool object, if any.
This number identifies the specific type of the tool with more precision than the type returned in get_type.
val has_pressure : t -> boolval has_distance : t -> boolval has_tilt : t -> boolval has_rotation : t -> boolval has_slider : t -> boolval has_size : t -> boolval has_wheel : t -> boolval has_button : t -> int -> boolval is_unique : t -> boolis_unique t indicates whether the physical tool can be uniquely identified by libinput.
If a tool can be uniquely identified, keeping a reference to the tool allows tracking the tool across proximity out sequences and across compatible tablets. See get_serial for more details.
val get_serial : t -> int64 optionget_serial t returns the serial number of the tool, if any.
module Config : sig ... endTool configuration.