commit | 1b217913fbc80d3b8042a628d1a3eb7a3842e7ff | [log] [tgz] |
---|---|---|
author | Harry Cutts <hcutts@google.com> | Tue Jan 03 17:13:19 2023 +0000 |
committer | Harry Cutts <hcutts@google.com> | Fri Jan 20 11:44:41 2023 +0000 |
tree | 698672cc2bc37bce2f32bd604a8059e47e96c1c3 | |
parent | 808ff1d46d82b9585699251a9ff08e7c318ce952 [diff] [blame] |
TouchpadInputMapper: Add gesture property provider Gesture properties are configurable parameters used by the gestures library [0]. These will be used for per-device tuning and to implement various touchpad settings. The property provider gives Android an interface with which to get and set property values. [0]: https://chromium.googlesource.com/chromiumos/platform/gestures/+/refs/heads/main/docs/gesture_properties.md Bug: 251196347 Test: atest inputflinger_tests Test: on device with some hacky test code Change-Id: I7723dcbabf29e13c8ab0907c71e5dd1faa766b45
diff --git a/services/inputflinger/reader/mapper/TouchpadInputMapper.h b/services/inputflinger/reader/mapper/TouchpadInputMapper.h index 3a92211..8ffc8a0 100644 --- a/services/inputflinger/reader/mapper/TouchpadInputMapper.h +++ b/services/inputflinger/reader/mapper/TouchpadInputMapper.h
@@ -29,6 +29,7 @@ #include "NotifyArgs.h" #include "gestures/GestureConverter.h" #include "gestures/HardwareStateConverter.h" +#include "gestures/PropertyProvider.h" #include "include/gestures.h" @@ -57,6 +58,8 @@ mGestureInterpreter; std::shared_ptr<PointerControllerInterface> mPointerController; + PropertyProvider mPropertyProvider; + HardwareStateConverter mStateConverter; GestureConverter mGestureConverter;