Input: synaptics - add support for ForcePads
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 30 Aug 2014 20:51:06 +0000 (13:51 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 5 Nov 2014 20:27:42 +0000 (20:27 +0000)
commitbabe91ef97b39c84a9356a4044cf87c419c98c83
treeda959cdf1189557a15d98bf7f5bec65e88483ed6
parent189613e5ef510bc6f58feeb023b57d71c1970a4c
Input: synaptics - add support for ForcePads

commit 5715fc764f7753d464dbe094b5ef9cffa6e479a4 upstream.

ForcePads are found on HP EliteBook 1040 laptops. They lack any kind of
physical buttons, instead they generate primary button click when user
presses somewhat hard on the surface of the touchpad. Unfortunately they
also report primary button click whenever there are 2 or more contacts
on the pad, messing up all multi-finger gestures (2-finger scrolling,
multi-finger tapping, etc). To cope with this behavior we introduce a
delay (currently 50 msecs) in reporting primary press in case more
contacts appear.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/input/mouse/synaptics.c
drivers/input/mouse/synaptics.h