diff options
| author | Michael Wright <michaelwr@google.com> | 2015-05-08 20:08:04 +0100 |
|---|---|---|
| committer | Michael Wright <michaelwr@google.com> | 2015-05-14 14:18:05 +0100 |
| commit | ec0ce51b733f10c620cb9447b074f022d042e31d (patch) | |
| tree | b1fb669f40ae6038e271f7c1a81ca46c7a19fb0b /api/system-current.txt | |
| parent | fbb34dd8df7bc89ae972c545130e76c5bbb4176e (diff) | |
| download | frameworks_base-ec0ce51b733f10c620cb9447b074f022d042e31d.zip frameworks_base-ec0ce51b733f10c620cb9447b074f022d042e31d.tar.gz frameworks_base-ec0ce51b733f10c620cb9447b074f022d042e31d.tar.bz2 | |
Add new MotionEvent actions for button press and release.
Introduce ACTION_BUTTON_PRESS and ACTION_BUTTON_RELEASE as actions to
signal a button press or release. If these actions happen
simulanteously with a DOWN or UP event then they're explicitly
ordered to happen after the DOWN or preceding the UP in order to send
them to the most recently targeted view.
Also, introduce new stylus button constants that differ from the
constants we use for mouse buttons.
Bug: 20704355
Change-Id: I5b75e5c5e692171c1c117ee687dd185a0d9dd15c
Diffstat (limited to 'api/system-current.txt')
| -rw-r--r-- | api/system-current.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/api/system-current.txt b/api/system-current.txt index f11e113..b630d38 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -37828,6 +37828,7 @@ package android.view { method public static java.lang.String axisToString(int); method public final int findPointerIndex(int); method public final int getAction(); + method public final int getActionButton(); method public final int getActionIndex(); method public final int getActionMasked(); method public final float getAxisValue(int); @@ -37891,7 +37892,6 @@ package android.view { method public final float getY(int); method public final float getYPrecision(); method public final boolean isButtonPressed(int); - method public final boolean isStylusButtonPressed(); method public static android.view.MotionEvent obtain(long, long, int, int, android.view.MotionEvent.PointerProperties[], android.view.MotionEvent.PointerCoords[], int, int, float, float, int, int, int, int); method public static deprecated android.view.MotionEvent obtain(long, long, int, int, int[], android.view.MotionEvent.PointerCoords[], int, float, float, int, int, int, int); method public static android.view.MotionEvent obtain(long, long, int, float, float, float, float, int, float, float, int, int); @@ -37907,6 +37907,8 @@ package android.view { method public final void setSource(int); method public final void transform(android.graphics.Matrix); method public void writeToParcel(android.os.Parcel, int); + field public static final int ACTION_BUTTON_PRESS = 11; // 0xb + field public static final int ACTION_BUTTON_RELEASE = 12; // 0xc field public static final int ACTION_CANCEL = 3; // 0x3 field public static final int ACTION_DOWN = 0; // 0x0 field public static final int ACTION_HOVER_ENTER = 9; // 0x9 @@ -37975,6 +37977,8 @@ package android.view { field public static final int BUTTON_FORWARD = 16; // 0x10 field public static final int BUTTON_PRIMARY = 1; // 0x1 field public static final int BUTTON_SECONDARY = 2; // 0x2 + field public static final int BUTTON_STYLUS_PRIMARY = 32; // 0x20 + field public static final int BUTTON_STYLUS_SECONDARY = 64; // 0x40 field public static final int BUTTON_TERTIARY = 4; // 0x4 field public static final android.os.Parcelable.Creator<android.view.MotionEvent> CREATOR; field public static final int EDGE_BOTTOM = 2; // 0x2 |
