飞凌TE6410自带的文件系统的Qtopia4.4.3没有触摸屏校正过程;因此需要自己在/bin/qtopia4文件中写入触摸屏校正程序,如果不写这个的话,系统就可能会使用qtopia2.2.0
的屏幕校正文件,从而导致自己编写的qtopia4.4.3应用程序不能支持触摸功能(其实是支持的,是不能识别位置而已)。
程序如下:
if [ -c /dev/input/event2 ]; then
export QWS_MOUSE_PROTO="Tslib:${TSLIB_TSDEVICE}"
############code we added#########
if [ ! -e /etc/pointercal ]; then
/bin/calibrate
fi
############code we added#########
if [ -e /etc/pointercal -a ! -s /etc/pointercal ] ; then
rm /etc/pointercal
fi
else
export QWS_MOUSE_PROTO="MouseMan:/dev/input/mice"
>/etc/pointercal
fi