From 7013c869e6f78d03ad626b5d29315dda9ee84fb9 Mon Sep 17 00:00:00 2001 From: Harry Cutts Date: Thu, 15 Sep 2022 13:59:09 +0000 Subject: Add CLASSIFICATION_TWO_FINGER_SCROLL for touchpad scrolling This will be used to denote the single-finger touches that TouchInputMapper creates to simulate scrolling when the user makes two-finger swipes on the touchpad. Bug: 246758376 Test: check new value is sent to a test app when scrolling on a touchpad Change-Id: Id93cba764522e36d850f7013ab8a117f64716fac --- native/android/input.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'native/android/input.cpp') diff --git a/native/android/input.cpp b/native/android/input.cpp index a231d8f153e7..812db0f1c507 100644 --- a/native/android/input.cpp +++ b/native/android/input.cpp @@ -295,6 +295,8 @@ int32_t AMotionEvent_getClassification(const AInputEvent* motion_event) { return AMOTION_EVENT_CLASSIFICATION_AMBIGUOUS_GESTURE; case android::MotionClassification::DEEP_PRESS: return AMOTION_EVENT_CLASSIFICATION_DEEP_PRESS; + case android::MotionClassification::TWO_FINGER_SWIPE: + return AMOTION_EVENT_CLASSIFICATION_TWO_FINGER_SWIPE; } } -- cgit v1.2.3-59-g8ed1b