DescriptionAdd palm suppression feature to EventConverterEvdev
The palm suppression is enabled by an internal stylus enabled
TouchEventConverterEvdev via a callback to InputDeviceFactoryEvdev.
When in palm suppression mode, all internal touchscreen devices will
be disabled.
Before a touchscreen would lift all touches when disabled, and
re-initialize when re-enabled. To prevent the unnecessary ioctls the
code has been updated to force cancel all touches while disabled, but
continue to read and sync the internal touch state. This will also
make sure that touches that went down while disabled, will not
suddenly show up after enabling and continue to stay cancelled until
lifted.
BUG=636458
Committed: https://crrev.com/0cf5d6752db81e256e5e705bc64c4bb04dc1e34a
Cr-Commit-Position: refs/heads/master@{#414860}
Patch Set 1 #Patch Set 2 : fixed nits #Patch Set 3 : added support for MT_TOOL_PALM to cancel events #
Total comments: 2
Patch Set 4 : use touch major = max to recognize palms #
Total comments: 5
Patch Set 5 : Use enable/disable instead of palm suppression filter #
Total comments: 10
Patch Set 6 : incorporated suggestions by spang@ #Patch Set 7 : simplified cancelation logic #
Total comments: 2
Patch Set 8 : fixed formatting nit #Patch Set 9 : fixed unit tests #Messages
Total messages: 19 (6 generated)
|