Fix issue #2281046: Size and pressure don't change

Change-Id: Iadc1d438a494bb1495ee6d93d0dd3b4a491a378f
This commit is contained in:
Dianne Hackborn
2009-11-23 13:08:14 -08:00
parent bca9f1bbb3
commit 05799981d8

View File

@@ -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;
}