summaryrefslogtreecommitdiff
path: root/libs/input/InputEventLabels.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2022-12-16 21:26:24 +0000
committer Harry Cutts <hcutts@google.com> 2023-01-09 14:36:12 +0000
commitef400b26ab180b0dd7a7cf8f306d2ac72fcfe40a (patch)
tree1d89e613e7b4bc109e74b4c830e6ec0294afa75b /libs/input/InputEventLabels.cpp
parent2e2c00f8df0e2bfcadc0b2df544065c82cd42cb9 (diff)
Report two-finger touchpad swipes
Bug: 251196347 Test: try out two-finger scroll gestures with an Apple Magic Trackpad 2 Test: atest inputflinger_tests Change-Id: I9e693350873b90bd50605ab348821224ae1121a8
Diffstat (limited to 'libs/input/InputEventLabels.cpp')
-rw-r--r--libs/input/InputEventLabels.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/input/InputEventLabels.cpp b/libs/input/InputEventLabels.cpp
index dd7cbb5ba9..8ffd220ad8 100644
--- a/libs/input/InputEventLabels.cpp
+++ b/libs/input/InputEventLabels.cpp
@@ -394,7 +394,9 @@ namespace android {
DEFINE_AXIS(GENERIC_15), \
DEFINE_AXIS(GENERIC_16), \
DEFINE_AXIS(GESTURE_X_OFFSET), \
- DEFINE_AXIS(GESTURE_Y_OFFSET)
+ DEFINE_AXIS(GESTURE_Y_OFFSET), \
+ DEFINE_AXIS(GESTURE_SCROLL_X_DISTANCE), \
+ DEFINE_AXIS(GESTURE_SCROLL_Y_DISTANCE)
// NOTE: If you add new LEDs here, you must also add them to Input.h
#define LEDS_SEQUENCE \