diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/input/Input.h | 4 | ||||
-rw-r--r-- | include/input/VirtualInputDevice.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/input/Input.h b/include/input/Input.h index 17672d11f7..77d7448db3 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -196,11 +196,11 @@ static constexpr size_t MAX_POINTERS = 16; #define MAX_POINTER_ID 31 /* - * Number of high resolution mouse scroll units for one detent (mouse wheel click), as defined in + * Number of high resolution scroll units for one detent (scroll wheel click), as defined in * evdev. This is relevant when an input device is emitting REL_WHEEL_HI_RES or REL_HWHEEL_HI_RES * events. */ -constexpr int32_t kEvdevMouseHighResScrollUnitsPerDetent = 120; +constexpr int32_t kEvdevHighResScrollUnitsPerDetent = 120; /* * Declare a concrete type for the NDK's input event forward declaration. diff --git a/include/input/VirtualInputDevice.h b/include/input/VirtualInputDevice.h index 9fbae73167..dabe45ce21 100644 --- a/include/input/VirtualInputDevice.h +++ b/include/input/VirtualInputDevice.h @@ -129,6 +129,9 @@ public: VirtualRotaryEncoder(android::base::unique_fd fd); virtual ~VirtualRotaryEncoder() override; bool writeScrollEvent(float scrollAmount, std::chrono::nanoseconds eventTime); + +private: + int32_t mAccumulatedHighResScrollAmount; }; } // namespace android |