Hi there,
I have ported (am porting) Gingerbread to my device and I made a
custom touchscreen 5-point calibration method. This is my port:
http://sourceforge.net/p/ipaq214android/android/ci/c01dc0839a8a86a74959f197ee99433da6805ead/tree/
==Relevant files==
InputReader.cpp.diff
InputReader.h.diff
ipaq214/wm97xx-touchscreen.idc
Files `InputReader.*.diff` are modifications to the framework to allow
using the 5-point calibration method by the idc file.
For the idc file you need to use the correct name. Some info is here:
http://source.android.com/tech/input/input-device-configuration-files.html
Note that lines 26-32 in `wm97xx-touchscreen.idc` is applicable only
for patched framework.
The idc file is copied to system/usr/idc in
device.mk.
In order to use the calibration, you need to have an existing Linux
distribution that has TSLib built with it, calibrate it once, and get
the /etc/pointercal file after calibration. Then divide all the
numbers by the last number (should be 65536?) and replace line 27-32
of the idc file by the numbers.
The reason for me to use the idc file instead of etc/pointercal is
that I wanted to follow the standard. Obviously, using this method
isn't a really good way as calibration cannot be done dynamically.
For me, I used the "Pointer Location" in "Dev Tools" (ENG build) to
test the touchscreen pointer location.
I hope this helps.
Good luck,
Alvin Wong
>
MSN:lihui205...@163.com