]> git.karo-electronics.de Git - linux-beck.git/commit
HID: multitouch: handle external buttons for Precision Touchpads
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 25 Nov 2016 10:08:10 +0000 (11:08 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 28 Nov 2016 13:37:00 +0000 (14:37 +0100)
commit594312b88b0f451912c964c7ff2c0eaa71ad41b4
tree5077bd911ada5d1204169407fb6b31af995587db
parente2b6535d47ce223e327de053b804d2e572a98bbc
HID: multitouch: handle external buttons for Precision Touchpads

According to https://msdn.microsoft.com/en-us/library/windows/hardware/mt604195(v=vs.85).aspx
external buttons have some weird usage mapping:
- Button 2 Indicates Button State for external button for primary
  (default left) clicking.
- Button 3 Indicates Button State for external button for secondary
  (default right) clicking.

So in the current state, the buttons are mapped to right and middle.
Move the usage by one to correctly map the external buttons.

Tested-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c