package libinput

  1. Overview
  2. Docs

Module Event.Tablet_toolSource

Events from graphics tablet tools (e.g. pens).

Sourcetype ty = [
  1. | `Tablet_tool_axis of [ `Tablet_tool_axis ] t
  2. | `Tablet_tool_proximity of [ `Tablet_tool_proximity ] t
  3. | `Tablet_tool_tip of [ `Tablet_tool_tip ] t
  4. | `Tablet_tool_button of [ `Tablet_tool_button ] t
]
Sourcetype any = [
  1. | `Tablet_tool_axis
  2. | `Tablet_tool_proximity
  3. | `Tablet_tool_tip
  4. | `Tablet_tool_button
]
Sourceval get_time : [< any ] t -> Timestamp.t
Sourceval x_has_changed : [< any ] t -> bool
Sourceval y_has_changed : [< any ] t -> bool
Sourceval pressure_has_changed : [< any ] t -> bool
Sourceval distance_has_changed : [< any ] t -> bool
Sourceval tilt_x_has_changed : [< any ] t -> bool
Sourceval tilt_y_has_changed : [< any ] t -> bool
Sourceval rotation_has_changed : [< any ] t -> bool
Sourceval slider_has_changed : [< any ] t -> bool
Sourceval size_major_has_changed : [< any ] t -> bool
Sourceval size_minor_has_changed : [< any ] t -> bool
Sourceval wheel_has_changed : [< any ] t -> bool
Sourceval get_x : [< any ] t -> float
Sourceval get_y : [< any ] t -> float
Sourceval get_dx : [< any ] t -> float
Sourceval get_dy : [< any ] t -> float
Sourceval get_pressure : [< any ] t -> float
Sourceval get_distance : [< any ] t -> float
Sourceval get_tilt_x : [< any ] t -> float
Sourceval get_tilt_y : [< any ] t -> float
Sourceval get_rotation : [< any ] t -> float
Sourceval get_slider_position : [< any ] t -> float
Sourceval get_size_major : [< any ] t -> float
Sourceval get_size_minor : [< any ] t -> float
Sourceval get_wheel_delta : [< any ] t -> float
Sourceval get_wheel_delta_discrete : [< any ] t -> int
Sourceval get_x_transformed : [< any ] t -> width:int -> float
Sourceval get_y_transformed : [< any ] t -> height:int -> float
Sourceval get_tool : [< any ] t -> Tablet_tool.t
Sourceval get_proximity_state : [< any ] t -> [ `In | `Out ]
Sourceval get_tip_state : [< any ] t -> [ `Up | `Down ]
Sourceval get_button : [ `Tablet_tool_button ] t -> int
Sourceval get_button_state : [ `Tablet_tool_button ] t -> [ `Released | `Pressed ]
Sourceval get_seat_button_count : [ `Tablet_tool_button ] t -> int