summaryrefslogtreecommitdiff
path: root/src/shared/missing.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-03-26 14:08:35 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-04-07 11:07:32 +1000
commit606df97b6a2438a8844c828ecdef1e9b25e2e838 (patch)
tree8d1ccb0bf2c73fd9dc1e5faa8ec64cccc0f3ed5b /src/shared/missing.h
parentb604cb9bf6a14d12589e85b82f3f59db93ea0029 (diff)
udev: input_id: tag pointing sticks as ID_INPUT_POINTINGSTICK
Also referred to as trackpoint, trackstick. These are marked by recent kernels through an input prop. Forward that prop as udev property so userspace can easily determine whether there is a pointing stick present. These devices were previously marked as ID_INPUT_MOUSE, for backwards compatibility we keep that in place, the new property is an addition.
Diffstat (limited to 'src/shared/missing.h')
-rw-r--r--src/shared/missing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h
index 67006fb852..52d49f75dc 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -948,3 +948,7 @@ static inline int kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, uns
#ifndef KCMP_FILE
#define KCMP_FILE 0
#endif
+
+#ifndef INPUT_PROP_POINTING_STICK
+#define INPUT_PROP_POINTING_STICK 0x05
+#endif