summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-11-23 13:08:14 -0800
committerDianne Hackborn <hackbod@google.com>2009-11-23 15:49:15 -0800
commit05799981d8d930e0b929cdb99f9407e3ee18c142 (patch)
treedb7c2316a441f6f245515ae6938e82ec315e13d0 /services
parentbca9f1bbb31cf05ba17af049a5ea37f57981f00e (diff)
downloadframeworks_base-05799981d8d930e0b929cdb99f9407e3ee18c142.zip
frameworks_base-05799981d8d930e0b929cdb99f9407e3ee18c142.tar.gz
frameworks_base-05799981d8d930e0b929cdb99f9407e3ee18c142.tar.bz2
Fix issue #2281046: Size and pressure don't change
Change-Id: Iadc1d438a494bb1495ee6d93d0dd3b4a491a378f
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/InputDevice.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/java/com/android/server/InputDevice.java b/services/java/com/android/server/InputDevice.java
index 6eb6242..7c19f24 100644
--- a/services/java/com/android/server/InputDevice.java
+++ b/services/java/com/android/server/InputDevice.java
@@ -288,6 +288,10 @@ public class InputDevice {
+ " weight: (" + x + "," + y + ")");
mAveragedData[ioff + MotionEvent.SAMPLE_X] = x;
mAveragedData[ioff + MotionEvent.SAMPLE_Y] = y;
+ mAveragedData[ioff + MotionEvent.SAMPLE_PRESSURE] =
+ rawData[ioff + MotionEvent.SAMPLE_PRESSURE];
+ mAveragedData[ioff + MotionEvent.SAMPLE_SIZE] =
+ rawData[ioff + MotionEvent.SAMPLE_SIZE];
}
return mAveragedData;
}