From ba27d1d9484c25a9ab58d13dcc59d35ad73fc7d3 Mon Sep 17 00:00:00 2001 From: Biswarup Pal Date: Tue, 9 Jul 2024 19:57:33 +0000 Subject: Native support for rotary encoder high-res scroll Test: atest RotaryEncoderInputMapperTest Test: atest VirtualRotaryEncoderTest Flag: android.companion.virtualdevice.flags.high_resolution_scroll Bug: 320328752 Change-Id: Iac9092597010582bd3f55e51ee63e9eb9c8d9433 --- include/input/Input.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/input/Input.h') 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. -- cgit v1.2.3-59-g8ed1b