summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-04-12 11:47:01 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-04-12 11:47:01 -0400
commit5ee5fee016106cf9095431f11c0204b98a5ba69b (patch)
tree4e1917106181642e294de9f987f0242a8bae4fb9 /src/shared
parentae871637adf71af59b74f544a1f41aab5f4e2450 (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.y Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared')
-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 00b5f7811c..f73140d71b 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -142,3 +142,7 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle
return syscall(__NR_name_to_handle_at, fd, name, handle, mnt_id, flags);
}
#endif
+
+#ifndef INPUT_PROP_POINTING_STICK
+#define INPUT_PROP_POINTING_STICK 0x05
+#endif