Descriptionozone: Map TouchEvent::touch_id_ into expected range
Touch events from evdev have a slot identifier to represent which
fingers are touched. Prior to this change this slot identifier was used
as the TouchEvent::touch_id_. However this breaks with multiple
touchscreens as the range for the slots will be the same.
This CL resolves that by using a SequentialIDGenerator to map a unique
device and slot id to an unused touch id in the sequence.
The touch id is released when the touch is released or cancelled.
BUG=472308
TEST=Manual testing on link_freon with uncommitted VLOG messages.
Committed: https://crrev.com/6b00b5adca67ecbf6accd74d7d51d9b596ef066b
Cr-Commit-Position: refs/heads/master@{#325255}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Map touch ids into range #Patch Set 3 : Relocate DeviceDataManageOzone creation and add gn entries #Patch Set 4 : Push all touch id management into EventFactoryEvdev #
Messages
Total messages: 15 (4 generated)
|