summaryrefslogtreecommitdiff
path: root/libs/input/VelocityControl.cpp
diff options
context:
space:
mode:
author Zixuan Qu <zixuanqu@google.com> 2022-11-11 04:47:51 +0000
committer Zixuan Qu <zixuanqu@google.com> 2022-11-14 23:57:16 +0000
commit79b76d190b1c6bf78fe4ade91c0d6f1a4c637ee7 (patch)
treec9e3cdf9d58ed97830f0cebde7a36031822413e8 /libs/input/VelocityControl.cpp
parentf8ebb5b58d973109811154eae03d687b9da2c87c (diff)
Dump WheelVelocityControlParameters in individual CursorInputMappers.
This information is currently only dumped from InputReader as a global state. However device can have different configurations in the related CursorInputMapper. Test: Manual - adb shell dumpsys input Change-Id: Ibec2b5ff2533c74924a542fe98d13fa8a88e40ca
Diffstat (limited to 'libs/input/VelocityControl.cpp')
-rw-r--r--libs/input/VelocityControl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/input/VelocityControl.cpp b/libs/input/VelocityControl.cpp
index e2bfb508e1..5c008b1158 100644
--- a/libs/input/VelocityControl.cpp
+++ b/libs/input/VelocityControl.cpp
@@ -37,6 +37,10 @@ VelocityControl::VelocityControl() {
reset();
}
+VelocityControlParameters& VelocityControl::getParameters() {
+ return mParameters;
+}
+
void VelocityControl::setParameters(const VelocityControlParameters& parameters) {
mParameters = parameters;
reset();