diff options
| author | 2023-01-20 18:49:20 +0000 | |
|---|---|---|
| committer | 2023-01-20 18:49:20 +0000 | |
| commit | 0d5e66e409a3afee96ff6abb9b9dde64c109d49e (patch) | |
| tree | b75971f4b424c9c8c8693d8bc1394e5bf4c9f540 | |
| parent | d5095e769c6c4eaf2a5888a5828f272669a6e0a4 (diff) | |
| parent | 13063aa7f1385410f230ca0079a4ce36fd1d6a92 (diff) | |
Merge changes from topic "revert-21018993-VQPVABITMR"
* changes:
Revert "Disable new touchpad stack for Sony gamepads"
Revert "Enable new touchpad stack by default"
| -rw-r--r-- | services/inputflinger/reader/InputDevice.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/services/inputflinger/reader/InputDevice.cpp b/services/inputflinger/reader/InputDevice.cpp index 6ac6b5bdb3..9bd50f7754 100644 --- a/services/inputflinger/reader/InputDevice.cpp +++ b/services/inputflinger/reader/InputDevice.cpp @@ -209,15 +209,9 @@ void InputDevice::addEventHubDevice(int32_t eventHubId, bool populateMappers) { // Touchscreens and touchpad devices. static const bool ENABLE_TOUCHPAD_GESTURES_LIBRARY = - sysprop::InputProperties::enable_touchpad_gestures_library().value_or(true); - // TODO(b/246587538): Fix the new touchpad stack for Sony DualShock 4 (5c4, 9cc) and DualSense - // (ce6) touchpads, or at least load this setting from the IDC file. - const InputDeviceIdentifier& identifier = getDeviceInfo().getIdentifier(); - const bool isSonyGamepadTouchpad = identifier.vendor == 0x054c && - (identifier.product == 0x05c4 || identifier.product == 0x09cc || - identifier.product == 0x0ce6); + sysprop::InputProperties::enable_touchpad_gestures_library().value_or(false); if (ENABLE_TOUCHPAD_GESTURES_LIBRARY && classes.test(InputDeviceClass::TOUCHPAD) && - classes.test(InputDeviceClass::TOUCH_MT) && !isSonyGamepadTouchpad) { + classes.test(InputDeviceClass::TOUCH_MT)) { mappers.push_back(std::make_unique<TouchpadInputMapper>(*contextPtr)); } else if (classes.test(InputDeviceClass::TOUCH_MT)) { mappers.push_back(std::make_unique<MultiTouchInputMapper>(*contextPtr)); |