diff --git a/core/api/current.txt b/core/api/current.txt index 5dd1b3938f40b..3d8491854c33a 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -50482,6 +50482,8 @@ package android.view { field public static final int AXIS_GENERIC_7 = 38; // 0x26 field public static final int AXIS_GENERIC_8 = 39; // 0x27 field public static final int AXIS_GENERIC_9 = 40; // 0x28 + field public static final int AXIS_GESTURE_SCROLL_X_DISTANCE = 50; // 0x32 + field public static final int AXIS_GESTURE_SCROLL_Y_DISTANCE = 51; // 0x33 field public static final int AXIS_GESTURE_X_OFFSET = 48; // 0x30 field public static final int AXIS_GESTURE_Y_OFFSET = 49; // 0x31 field public static final int AXIS_HAT_X = 15; // 0xf diff --git a/core/java/android/view/MotionEvent.java b/core/java/android/view/MotionEvent.java index 1ff7ae662da00..a36fd8d99e3ce 100644 --- a/core/java/android/view/MotionEvent.java +++ b/core/java/android/view/MotionEvent.java @@ -1293,6 +1293,23 @@ public final class MotionEvent extends InputEvent implements Parcelable { */ public static final int AXIS_GESTURE_Y_OFFSET = 49; + /** + * Axis constant: X scroll distance axis of a motion event. + *
+ *