summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-05-03 15:03:40 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-05-03 17:17:28 +1000
commit8a415e486a6df06ca198b503cd120205cbbc8c6e (patch)
treecd573b1dd9c1a6d7419d191bfd141052cbdbe923 /src
parent4d2724d022e0e925495e6678cd2d8372d3a3d695 (diff)
Add tagging of trackballs
Currently unused, but oh, the possibilities... The only thing we have to go on for trackballs at the moment is whether they have "Trackball" in the name string. All others need to be manually tagged. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c1
-rw-r--r--src/evdev.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 97a8fff6..7abd8953 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1736,6 +1736,7 @@ evdev_read_model_flags(struct evdev_device *device)
MODEL(ALPS_RUSHMORE),
MODEL(LENOVO_T450_TOUCHPAD),
MODEL(WOBBLY_TOUCHPAD),
+ MODEL(TRACKBALL),
{ NULL, EVDEV_MODEL_DEFAULT },
#undef MODEL
};
diff --git a/src/evdev.h b/src/evdev.h
index db6d83fa..2607fd85 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -116,6 +116,7 @@ enum evdev_device_model {
EVDEV_MODEL_ALPS_RUSHMORE = (1 << 16),
EVDEV_MODEL_LENOVO_T450_TOUCHPAD= (1 << 17),
EVDEV_MODEL_WOBBLY_TOUCHPAD = (1 << 18),
+ EVDEV_MODEL_TRACKBALL = (1 << 19),
};
struct mt_slot {