diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-03-03 02:09:54 -0800 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2011-03-09 02:46:45 -0800 |
commit | 9626b14a283ef82d16636cf5fb5ba8bb4d30381e (patch) | |
tree | ad6e1a8c87412308cff13d5a727b179ab301dfee /core | |
parent | 924c4d47774fa7d8a5ce659d12291ef7df82ee05 (diff) | |
download | frameworks_base-9626b14a283ef82d16636cf5fb5ba8bb4d30381e.zip frameworks_base-9626b14a283ef82d16636cf5fb5ba8bb4d30381e.tar.gz frameworks_base-9626b14a283ef82d16636cf5fb5ba8bb4d30381e.tar.bz2 |
Fix off by one errors in touch motion ranges. (DO NOT MERGE)
Report inclusive minimum and maximum ranges for all
axes including X and Y.
Set mouse pointer bounds to 0..width-1, 0..height-1.
Rotate touch and mouse positions more carefully, paying attention
to the maximum bounds when calculating the complement of an axis.
Simplified the InputReader somewhat and removed support for a
couple of poorly defined input device configuration parameters.
We now assume that the touch device provides useful absolute axis
ranges for the X and Y axes since the alternative does not actually
make sense.
Bug: 3413541
Change-Id: I121d28a125c4f9618cb283dc460d33ff1a907023
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/view/MotionEvent.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/view/MotionEvent.java b/core/java/android/view/MotionEvent.java index 3c39149..a17db5d 100644 --- a/core/java/android/view/MotionEvent.java +++ b/core/java/android/view/MotionEvent.java @@ -2157,6 +2157,8 @@ public final class MotionEvent extends InputEvent implements Parcelable { * MotionEvent. For touch events, clients can use this to determine if the * user's finger was touching the edge of the display. * + * This property is only set for {@link #ACTION_DOWN} events. + * * @see #EDGE_LEFT * @see #EDGE_TOP * @see #EDGE_RIGHT |