summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2023-05-10 17:39:59 +0000
committer Harry Cutts <hcutts@google.com> 2023-05-10 17:39:59 +0000
commit23c8dff7e1b9d15f65f79af6ad708267e9c90b8e (patch)
tree9db418b3001e68298d4a99afbc4fe09acdece8cf /libs/gui/BufferQueueThreadState.cpp
parentbd65cc20d9de72531643c48c243d6ba18c837baa (diff)
CapturedTouchpadEventConverter: fix button reporting
The previous implementation had a couple of issues with reporting BUTTON_PRESS or _RELEASE events with no pointers, which are invalid. This occurred when the evdev device reported a button press one sync before reporting a touch going down (observed when tapping hard and fast on an Apple Magic Trackpad 2), or when the last touch lifted in the same evdev sync as the button being released. Bug: b/281825527 Test: atest inputflinger_tests Test: manual checking of events reported to a test app capturing the pad Change-Id: I1676a1ab9281872c745416ad41186c65a44eb581
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions