From de0dbd7354a6bfdc7a8f3ee7ec7f9897121f5f6d Mon Sep 17 00:00:00 2001 From: Chris Ye Date: Fri, 2 Oct 2020 23:06:39 -0700 Subject: Fix MotionEvent.axisToString returns wrong axis name. Align native axes label look up with Java and NDK axes mapping. Bug: 169986418 Test: atest MotionEventTest Change-Id: Icea91024cea67d4b93da5374e56ab0e83c6c5abe --- libs/input/InputEventLabels.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/input/InputEventLabels.cpp') diff --git a/libs/input/InputEventLabels.cpp b/libs/input/InputEventLabels.cpp index dee240c0bf..c0aa2e26a2 100644 --- a/libs/input/InputEventLabels.cpp +++ b/libs/input/InputEventLabels.cpp @@ -348,6 +348,9 @@ namespace android { DEFINE_AXIS(SCROLL), \ DEFINE_AXIS(RELATIVE_X), \ DEFINE_AXIS(RELATIVE_Y), \ + {"RESERVED_29", 29}, \ + {"RESERVED_30", 30}, \ + {"RESERVED_31", 31}, \ DEFINE_AXIS(GENERIC_1), \ DEFINE_AXIS(GENERIC_2), \ DEFINE_AXIS(GENERIC_3), \ -- cgit v1.2.3-59-g8ed1b