]> git.baikalelectronics.ru Git - kernel.git/commit
Input: add INPUT_PROP_POINTING_STICK property
authorHans de Goede <hdegoede@redhat.com>
Mon, 8 Sep 2014 21:42:12 +0000 (14:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 8 Sep 2014 21:58:11 +0000 (14:58 -0700)
commit7cfc4f42427cda9623e2c7a8eb6c436d269f3c6a
tree36f8cfcc461ac39fe10bba2fc59fc9c09cac9319
parent9c6c28c1e96e087ab6aea128b41069f67c86f3b2
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.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c
drivers/input/mouse/elantech.c
drivers/input/mouse/synaptics_usb.c
drivers/input/mouse/trackpoint.c
include/uapi/linux/input.h