summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputReaderBase.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2023-01-13 17:21:00 +0000
committer Harry Cutts <hcutts@google.com> 2023-01-26 14:59:54 +0000
commita546ba8dfb64ef493c06dae1402fb02b024f8262 (patch)
tree892109ed4cd1c069f8b9960ab401538e3243d085 /services/inputflinger/InputReaderBase.cpp
parent3ea5e0d27f8f2001eb4e1740c455135fe6aa6aec (diff)
Add plumbing from settings to gesture properties
Because we don't have the Android curve parameters yet (or the code to put them into the custom curve gesture properties), the fifteen different speed settings get mapped onto the five ChromeOS curves built-in to the gestures library Bug: 251196347, 247080509, 265798483 Test: Use settings command in ADB shell to change values Change-Id: I414d6e63c56d8e42c5848ca4aa150510956c70e3
Diffstat (limited to 'services/inputflinger/InputReaderBase.cpp')
-rw-r--r--services/inputflinger/InputReaderBase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/inputflinger/InputReaderBase.cpp b/services/inputflinger/InputReaderBase.cpp
index a864cf8202..2450235ec1 100644
--- a/services/inputflinger/InputReaderBase.cpp
+++ b/services/inputflinger/InputReaderBase.cpp
@@ -73,6 +73,9 @@ std::string InputReaderConfiguration::changesToString(uint32_t changes) {
if (changes & CHANGE_ENABLED_STATE) {
result += "ENABLED_STATE | ";
}
+ if (changes & CHANGE_TOUCHPAD_SETTINGS) {
+ result += "TOUCHPAD_SETTINGS | ";
+ }
if (changes & CHANGE_MUST_REOPEN) {
result += "MUST_REOPEN | ";
}