]> git.baikalelectronics.ru Git - kernel.git/commit
Input: alps - non interleaved V2 dualpoint has separate stick button bits
authorHans de Goede <hdegoede@redhat.com>
Sun, 12 Apr 2015 22:42:35 +0000 (15:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 12 Apr 2015 22:44:15 +0000 (15:44 -0700)
commit87a07712ca8d874d23cc6c839c0d61e74cf342a6
tree1b07073ffe48139a25df597ca07ea5ac23754501
parent9882292bd0b7d86a7e2acf5d3d4528d8a22cf000
Input: alps - non interleaved V2 dualpoint has separate stick button bits

Non interleaved V2 dualpoint touchpad / stick combos have separate stick
button bits in the touchpad packets, if we do not check these then the
trackpoint buttons will not work when using the touchpad, and when pressed
when the user starts using the touchpad will report a release event even
though the button is still pressed.

This commit fixes this by checking the separate bits, note that we simply
combine the buttons, since the hardware does the same when using the touchpad
buttons with the trackpoint, so we do not have enough information to properly
separate them.

Reported-by: Hans de Bruin <jmdebruin@xmsnet.nl>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c