summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2022-09-27 19:32:43 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2022-10-03 17:45:30 +0000
commitafabcde5a9ac2b77586d61ad4a226718130663c3 (patch)
tree388794d073c42b50ab650d0a5798b2cf79cde40d /libs/gui/BufferQueueThreadState.cpp
parent6f8b77e330b1325cdc299a42a1ef19b1ef621597 (diff)
Preserve multi-touch slot state when resetting input mappers
The existing pattern in InputReader is that when a mapper is reset, all of its state is cleared and state of the buttons/axes is queried through EventHub to rebuild the current state of the mapper. This approach does not work for multi-touch devices, since there is no way to query the current state of the contacts through the evdev multi-touch protocol. Since we cannot fully rebuild the current state of a multi-touch device, we work around this limitation by never clearing the multi-touch state. Bug: 248506674 Test: atest inputflinger_tests Change-Id: Ic59d9fcb4e13fe262c422825c2485185004b719b
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions