diff --git a/core/api/current.txt b/core/api/current.txt index 9dae4543d0327..24b985d88e4b1 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -50541,6 +50541,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 5bc98479b5c45..b91019c016108 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. + *
+ *