]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: generic: Send BTN_TOOL_PEN in prox once the pen enters range
authorJason Gerecke <killertofu@gmail.com>
Fri, 8 Sep 2017 00:51:06 +0000 (17:51 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 13 Sep 2017 17:18:01 +0000 (19:18 +0200)
commit63ed4a6d116c921d5b102c49071699a00ea5a0f2
treee105450a21a60f964d0778efd6f0ee1e902f4eee
parentfd14f0437c26fdddd3658d8318f5799046fa43ab
HID: wacom: generic: Send BTN_TOOL_PEN in prox once the pen enters range

When a pen is first able to to be sensed by the tablet, we would like
to inform userspace that a tool is nearby so that it can attempt to
perform palm rejection. Unfortunately, we don't know any information
about the tool that is nearby, so the best we can do is send a prox
event for a generic BTN_TOOL_PEN. If the pen later comes closer and
enters proximity, we can determine the actual tool type and send
BTN_TOOL_PEN out of prox if necessary.

Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c