summaryrefslogtreecommitdiff
path: root/native/android/input.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2022-12-02 17:24:34 +0000
committer Harry Cutts <hcutts@google.com> 2023-01-04 12:58:57 +0000
commite2da4084a12368d022a217490af146bb9e3f5388 (patch)
tree31f71211bb7a47f34027a0d44aabad98b0f1f747 /native/android/input.cpp
parent484653442b7f93c407eec64a02a3a0176d8d4b1b (diff)
Add MULTI_FINGER_SWIPE motion classification
Bug: 251196347 Test: check events received by a custom tester app, and touches shown by pointer location overlay Change-Id: Ice71843404400e73f8170ae108e2e2c89cc1d9bd
Diffstat (limited to 'native/android/input.cpp')
-rw-r--r--native/android/input.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/native/android/input.cpp b/native/android/input.cpp
index 812db0f1c507..5e5ebed78e61 100644
--- a/native/android/input.cpp
+++ b/native/android/input.cpp
@@ -297,6 +297,8 @@ int32_t AMotionEvent_getClassification(const AInputEvent* motion_event) {
return AMOTION_EVENT_CLASSIFICATION_DEEP_PRESS;
case android::MotionClassification::TWO_FINGER_SWIPE:
return AMOTION_EVENT_CLASSIFICATION_TWO_FINGER_SWIPE;
+ case android::MotionClassification::MULTI_FINGER_SWIPE:
+ return AMOTION_EVENT_CLASSIFICATION_MULTI_FINGER_SWIPE;
}
}