OSDN Git Service

Input: goodix - add support for capacitive home button
authorSergei A. Trusov <sergei.a.trusov@ya.ru>
Thu, 7 Sep 2017 00:29:24 +0000 (17:29 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 11 Sep 2017 21:23:15 +0000 (14:23 -0700)
commit4a54feea1765a79ac8446bd6f5ce163fc94a8a95
treeaec1fa63ef7eef29d50236f5682233925b5bc331
parent3e5b08518f6aefad31dca975634c3133457928ff
Input: goodix - add support for capacitive home button

On some x86 tablets with a Goodix touchscreen, the Windows logo on the
front is a capacitive home button. Touching this button results in a touch
with bit 4 of the first byte set, while only the lower 4 bits (0-3) are
used to indicate the number of touches.

Report a KEY_LEFTMETA press when this happens.

Note that the hardware might support more than one button, in which
case the "id" byte of coor_data would identify the button in question.
This is not implemented as we don't have access to hardware with
multiple buttons.

Signed-off-by: Sergei A. Trusov <sergei.a.trusov@ya.ru>
Acked-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c