summaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-06-30 12:05:35 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-07-04 07:42:59 +1000
commit0c51a52389ae5d83a3c76eca4ccf3beb409e01a8 (patch)
tree21c5f230fdb17fe0c1a61dff687895b88ab833c2 /src/evdev.h
parent4923c404e8199c49106700a5c1f96f0ac3428f64 (diff)
touchpad: unify internal/external touchpad tagging
To unify this we need to move the tagging process forward so tp_init() can rely on it for config setup. This means moving it to the touchpad init code. Other than that no real functional changes, the rules stay the same: * serial/i2c/etc. are considered internal touchpads * Bluetooth is always external * USB is external for Logitech devices * USB is external for Wacom devices * USB is internal for Apple touchpads And if we can't figure it out, we assume it's external and log a message so we can put a quirk in place. https://bugs.freedesktop.org/show_bug.cgi?id=96735 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/evdev.h b/src/evdev.h
index ca13318..f0fb2f9 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -68,8 +68,9 @@ enum evdev_device_seat_capability {
enum evdev_device_tags {
EVDEV_TAG_EXTERNAL_MOUSE = (1 << 0),
EVDEV_TAG_INTERNAL_TOUCHPAD = (1 << 1),
- EVDEV_TAG_TRACKPOINT = (1 << 2),
- EVDEV_TAG_KEYBOARD = (1 << 3),
+ EVDEV_TAG_EXTERNAL_TOUCHPAD = (1 << 2),
+ EVDEV_TAG_TRACKPOINT = (1 << 3),
+ EVDEV_TAG_KEYBOARD = (1 << 4),
};
enum evdev_middlebutton_state {
@@ -334,10 +335,6 @@ struct evdev_dispatch *
evdev_tablet_pad_create(struct evdev_device *device);
void
-evdev_tag_touchpad(struct evdev_device *device,
- struct udev_device *udev_device);
-
-void
evdev_device_led_update(struct evdev_device *device, enum libinput_led leds);
int