summaryrefslogtreecommitdiff
path: root/include/android/input.h
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2022-12-02 17:30:18 +0000
committer Harry Cutts <hcutts@google.com> 2023-01-04 19:55:31 +0000
commitc5748d198b4ee9819ba35bf4c5c4eecf817fee7a (patch)
treeba8110a38ecfa218445a017f3d6faf9f7a28e3f1 /include/android/input.h
parentedf6ce710115b8871a8def72edbdfd6c0b15569e (diff)
Report three- and four-finger swipes
The dispatcher still needs to be modified to only dispatch these to SysUI windows. Bug: 251196347 Test: check events received by a custom tester app, and touches shown by pointer location overlay Test: atest inputflinger_tests Change-Id: I3a7211d4a67e6388231bef158d3748c2e72e128d
Diffstat (limited to 'include/android/input.h')
-rw-r--r--include/android/input.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/android/input.h b/include/android/input.h
index 5d19c5cb13..a0b46de260 100644
--- a/include/android/input.h
+++ b/include/android/input.h
@@ -870,6 +870,14 @@ enum AMotionClassification : uint32_t {
* The current event stream represents the user swiping with two fingers on a touchpad.
*/
AMOTION_EVENT_CLASSIFICATION_TWO_FINGER_SWIPE = 3,
+ /**
+ * Classification constant: multi-finger swipe.
+ *
+ * The current event stream represents the user swiping with three or more fingers on a
+ * touchpad. Unlike two-finger swipes, these are only to be handled by the system UI, which is
+ * why they have a separate constant from two-finger swipes.
+ */
+ AMOTION_EVENT_CLASSIFICATION_MULTI_FINGER_SWIPE = 4,
};
/**