Touch Calibration problem in the latest codebase

19 views
Skip to first unread message

John Cola

unread,
Dec 22, 2009, 4:06:11 AM12/22/09
to android-porting
Dear All
In the latest open source, the InputDevice.java has been modified a
lot.
And I cannot have a touch calibration successfully after
"ts_calibrate".

Following is the formula

if (device.tInfo != null){ //system/etc/pointercal exist!!
reportData[j + MotionEvent.SAMPLE_X] = (device.tInfo.x1 * ??? +

device.tInfo.y1 * ??? +

device.tInfo.z1) / device.tInfo.s;
}else
reportData[j + MotionEvent.SAMPLE_X] =
((reportData[j + MotionEvent.SAMPLE_X]-
absX.minValue)
/ absX.range) * w;

Which parameter should be assigned for "???" ? I've tried reportData[j
+ MotionEvent.SAMPLE_X] and reportData[j + MotionEvent.SAMPLE_Y] but
still unable to work.

BR
John

Michael Trimarchi

unread,
Dec 22, 2009, 4:16:19 AM12/22/09
to android...@googlegroups.com
Hi,

Can you try this one?

Michael

touch.patch

John Cola

unread,
Dec 22, 2009, 4:49:42 AM12/22/09
to android-porting
Dear Michael
Thank you so much!!!

BR
John
On 12月22日, 下午5時16分, Michael Trimarchi <trimar...@gandalf.sssup.it>
wrote:

> touch.patch
> 6K檢視下載- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Reply all
Reply to author
Forward
0 new messages