diff options
| author | 2024-01-24 16:27:56 +0000 | |
|---|---|---|
| committer | 2024-01-26 12:32:41 +0000 | |
| commit | e0e799dca205f1e362fda2195c455d99fdbef8f1 (patch) | |
| tree | 14542c75e2664a49f847963a030ebaee586dcd51 /services/inputflinger/reader | |
| parent | d5bfd321e7a2374abdd4d3474eb15555585438ed (diff) | |
touchpad: add tap dragging configuration option
Support for tap dragging already exists in the Gestures library, so we
just have to pass the value in as a gesture property.
Bug: 321978150
Test: with the flag enabled, run `adb shell settings put system
touchpad_tap_dragging 1`, try tap dragging (tapping then immediately
putting your finger back on the touchpad and moving it)
Change-Id: Ib1a25899d30ae612fdd6fe0fcdad38a2669dc39b
Diffstat (limited to 'services/inputflinger/reader')
| -rw-r--r-- | services/inputflinger/reader/mapper/TouchpadInputMapper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/inputflinger/reader/mapper/TouchpadInputMapper.cpp b/services/inputflinger/reader/mapper/TouchpadInputMapper.cpp index bdc164029c..b990dd5e79 100644 --- a/services/inputflinger/reader/mapper/TouchpadInputMapper.cpp +++ b/services/inputflinger/reader/mapper/TouchpadInputMapper.cpp @@ -397,6 +397,8 @@ std::list<NotifyArgs> TouchpadInputMapper::reconfigure(nsecs_t when, .setBoolValues({config.touchpadNaturalScrollingEnabled}); mPropertyProvider.getProperty("Tap Enable") .setBoolValues({config.touchpadTapToClickEnabled}); + mPropertyProvider.getProperty("Tap Drag Enable") + .setBoolValues({config.touchpadTapDraggingEnabled}); mPropertyProvider.getProperty("Button Right Click Zone Enable") .setBoolValues({config.touchpadRightClickZoneEnabled}); } |