Create Native VelocityTracker#isAxisSupported Function
This will eventually be used by the Java layer, by the #isAxisSupported
API.
Bug: 32830165
Test: unit test
Change-Id: Iebd040403797f14b3cd99b2d6fabb50b1ef7998e
diff --git a/include/input/VelocityTracker.h b/include/input/VelocityTracker.h
index 294879e..62c3ae1 100644
--- a/include/input/VelocityTracker.h
+++ b/include/input/VelocityTracker.h
@@ -106,6 +106,9 @@
~VelocityTracker();
+ /** Return true if the axis is supported for velocity tracking, false otherwise. */
+ static bool isAxisSupported(int32_t axis);
+
// Resets the velocity tracker state.
void clear();