diff options
| author | 2023-01-19 12:52:03 +0000 | |
|---|---|---|
| committer | 2023-01-19 14:52:32 +0000 | |
| commit | 9c528bd7ed42cc54f5b464c1cf5bf3782dbc0d2f (patch) | |
| tree | 2d0967ae47afed4653fa9af18d29ae402104cc71 /services/surfaceflinger/RegionSamplingThread.cpp | |
| parent | 808ff1d46d82b9585699251a9ff08e7c318ce952 (diff) | |
Disable new touchpad stack for Sony gamepads
The touchpads on the Sony DualShock 4 and DualSense gamepads do not work
with the gestures library, for a reason that is currently unknown. This
is tracked in b/246587538, but while we wait for that to be fixed just
check for them by vendor and product ID, and fall back to the old stack.
This shouldn't really be a few IDs hard-coded into `InputDevice` — it
should be an input device configuration property, but since those are
currently only loaded in the configuration stage that will require a
larger change.
Bug: 251196347, 246587538
Test: `setprop persist.input.touchpad.gestures_library.enabled true`,
connect gamepads, do a pinch gesture, confirm that touch spots
show on screen (which doesn't happen in the new stack)
Test: `setprop persist.input.touchpad.gestures_library.enabled true`,
run android.hardware.input.cts.tests.SonyDualshock4BluetoothTest
Change-Id: Iea756675248395e10cfc9d04371a1d46340b033b
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions