From 05799981d8d930e0b929cdb99f9407e3ee18c142 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Mon, 23 Nov 2009 13:08:14 -0800 Subject: [PATCH] Fix issue #2281046: Size and pressure don't change Change-Id: Iadc1d438a494bb1495ee6d93d0dd3b4a491a378f --- services/java/com/android/server/InputDevice.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/java/com/android/server/InputDevice.java b/services/java/com/android/server/InputDevice.java index 6eb6242b31bcc..7c19f243adada 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; }