]> git.baikalelectronics.ru Git - kernel.git/commit
Input: update input_mt_report_pointer_emulation to support hovering
authorKT Liao <kt.liao@emc.com.tw>
Fri, 20 May 2016 00:38:07 +0000 (17:38 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 1 Jun 2016 21:21:10 +0000 (14:21 -0700)
commit76d278997bd49d44a46a43ff87f9714597c6f3a4
treec3b43a4910e78e27b1b9839d8cd2717fe756d806
parentd57a8f1997da41587e7737f9b66123184bcd37dc
Input: update input_mt_report_pointer_emulation to support hovering

For devices that are incapable of reporting per-contact distance and can
only report ABS_DISTANCE, just distance is not enough for upper layers of
OS to determine whether contact is leaving the area or if it is continuing
hovering, we need BTN_TOOL_FINGER for that:

                                   Contact State
                    Inactive          Hovering            Active
                   (far away)    (inside hover area)  (touching surface)
BTN_TOUCH              0                 0                   1
BTN_TOOL_FINGER        0                 1                   1
ABS_DISTANCE          N/A                1                   0

Signed-off-by: KT Liao <kt.liao@emc.com.tw>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input-mt.c