diff options
author | 2022-10-05 15:55:48 +0000 | |
---|---|---|
committer | 2022-10-13 10:39:16 +0000 | |
commit | 39b7ca2933ffde9094aed908a507158d20be3d7a (patch) | |
tree | a0e3ebef1f565839d919186480e0b4a833990a64 /libs/input/InputEventLabels.cpp | |
parent | f1f601e01d6af47d658b7ba30fbe8f4b8f84b283 (diff) |
Report motion offsets for touchpad swipes
Adds two new axes, AXIS_GESTURE_X_OFFSET and AXIS_GESTURE_Y_OFFSET,
which report the movement of swipe gestures on the touchpad as a
fraction of the touchpad's size.
Bug: 246758376
Test: check axis values come through in a test app
Change-Id: I313410053a8db13273bd05a33d3a6a1f75081dae
Diffstat (limited to 'libs/input/InputEventLabels.cpp')
-rw-r--r-- | libs/input/InputEventLabels.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/input/InputEventLabels.cpp b/libs/input/InputEventLabels.cpp index 163a2fe924..b78fae3027 100644 --- a/libs/input/InputEventLabels.cpp +++ b/libs/input/InputEventLabels.cpp @@ -391,7 +391,9 @@ namespace android { DEFINE_AXIS(GENERIC_13), \ DEFINE_AXIS(GENERIC_14), \ DEFINE_AXIS(GENERIC_15), \ - DEFINE_AXIS(GENERIC_16) + DEFINE_AXIS(GENERIC_16), \ + DEFINE_AXIS(GESTURE_X_OFFSET), \ + DEFINE_AXIS(GESTURE_Y_OFFSET) // NOTE: If you add new LEDs here, you must also add them to Input.h #define LEDS_SEQUENCE \ |