History

Input: add INPUT_PROP_POINTING_STICK property

It is useful for userspace to know that there not dealing with a regular mouse but rather with a pointing stick (e.g. a trackpoint) so that userspace can e.g. automatically enable middle button scrollwheel emulation. It is impossible to tell the difference from the evdev info without resorting to putting a list of device / driver names in userspace, this is undesirable. Add a property which allows userspace to see if a device is a pointing stick, and set it on all the pointing stick drivers.

Hans de Goede committed 12 years ago

Commit 76113921 parent 271329b5 files · +10 −0Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/input.h+1−0
@@ -165,6 +165,7 @@ struct input_keymap_entry { · 164 unmodified lines
165165 #define INPUT_PROP_BUTTONPAD 0x02 /* has button(s) under pad */
166166 #define INPUT_PROP_SEMI_MT 0x03 /* touch rectangle only */
167167 #define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */
168+#define INPUT_PROP_POINTING_STICK 0x05 /* is a pointing stick */
168169
169170 #define INPUT_PROP_MAX 0x1f
170171 #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1)