OSDN Git Service

Add new MotionEvent actions for button press and release.
authorMichael Wright <michaelwr@google.com>
Fri, 8 May 2015 19:08:04 +0000 (20:08 +0100)
committerMichael Wright <michaelwr@google.com>
Thu, 14 May 2015 13:18:05 +0000 (14:18 +0100)
commitec0ce51b733f10c620cb9447b074f022d042e31d
treeb1fb669f40ae6038e271f7c1a81ca46c7a19fb0b
parentfbb34dd8df7bc89ae972c545130e76c5bbb4176e
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
api/current.txt
api/system-current.txt
core/java/android/view/InputEventConsistencyVerifier.java
core/java/android/view/MotionEvent.java
core/java/android/view/View.java
core/java/android/view/ViewRootImpl.java
core/jni/android_view_InputEventSender.cpp
core/jni/android_view_MotionEvent.cpp