From: Peter Hutterer Date: Thu, 26 Mar 2015 04:08:35 +0000 (+1000) Subject: udev: input_id: tag pointing sticks as ID_INPUT_POINTINGSTICK X-Git-Tag: v226.4~1^2~533 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=05dff23de8a7f3d9101738e4ec6ccd6f1177b3b9 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. --- diff --git a/src/shared/missing.h b/src/shared/missing.h index 2b979aeb1..6bb5ff0f0 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -926,3 +926,8 @@ static inline int renameat2(int oldfd, const char *oldname, int newfd, const cha #ifndef RENAME_NOREPLACE #define RENAME_NOREPLACE (1 << 0) #endif + + +#ifndef INPUT_PROP_POINTING_STICK +#define INPUT_PROP_POINTING_STICK 0x05 +#endif \ No newline at end of file