From 6737b90cb93d0231bbbc6045adf8a2443bc4e21c Mon Sep 17 00:00:00 2001 From: Benjamin Cheng Date: Tue, 12 Mar 2019 13:17:47 -0400 Subject: Add heuristics to differentiate touchpads Use libinput_device_config_tap_get_finger_count to determine whether a pointer is a touchpad. swaymsg is also updated to reflect the new touchpad type. --- include/sway/input/input-manager.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/sway/input/input-manager.h') diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h index e166a237..8d4a5b00 100644 --- a/include/sway/input/input-manager.h +++ b/include/sway/input/input-manager.h @@ -62,4 +62,6 @@ struct input_config *input_device_get_config(struct sway_input_device *device); char *input_device_get_identifier(struct wlr_input_device *device); +const char *input_device_get_type(struct sway_input_device *device); + #endif -- cgit v1.2.3-54-g00ecf