From 5ee5fee016106cf9095431f11c0204b98a5ba69b Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sun, 12 Apr 2015 11:47:01 -0400 Subject: 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 --- src/shared/missing.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared') 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 -- cgit v1.2.3-54-g00ecf