summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayEventDispatcher.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2024-10-28 17:34:19 +0000
committer Harry Cutts <hcutts@google.com> 2024-11-25 15:26:36 +0000
commitaf66cee7e92a59e81d1ea4b8872fa2e418a97599 (patch)
tree19625ccd6356225c5b151cefd8c370954ca2b72a /libs/gui/DisplayEventDispatcher.cpp
parentd71f586652092a91aa93c365ecece7d82f93218f (diff)
touchpad: add touchpad system gesture setting
This new setting is implemented as a simple boolean check before handling three- and four-finger swipe gestures. The only gotcha is to make sure we end any ongoing swipe when they're disabled, so we don't produce an inconsistent event stream. Test: disable the setting, check three- and four-finger swipes on the touchpad stop working; re-enable, check they work again Test: $ adb shell 'stop && setprop log.tag.InputDispatcherVerifyEvents DEBUG && start' then toggle the setting while performing gestures, check there are no crashes Test: atest inputflinger_tests Flag: com.android.hardware.input.touchpad_system_gesture_disable Bug: 353947750 Change-Id: I4333e3d3bb6f89d29332c701937ea4c870b1cbc5
Diffstat (limited to 'libs/gui/DisplayEventDispatcher.cpp')
0 files changed, 0 insertions, 0 deletions