Android系统触摸屏移植后出现小圆圈

        移植FT6X系列的触摸屏后,发现系统工作并不能像正常触摸屏那样,而是出现了一个小圆圈,像鼠标一样移动,进过查找相关资料,终于发现出现这种状况的原因是因为Android系统把触摸屏当成触摸板,所以才会出现一个像小圆圈一样的东西。

        在Android系统中,会按下面的顺序识别配置文件:
        /system/usr/idc/Vendor_XXXX_Product_XXXX_Version_XXXX.idc
        /system/usr/idc/Vendor_XXXX_Product_XXXX.idc
        /system/usr/idc/DEVICE_NAME.idc
        /data/system/devices/idc/Vendor_XXXX_Product_XXXX_Version_XXXX.idc
        /data/system/devices/idc/Vendor_XXXX_Product_XXXX.idc
        /data/system/devices/idc/DEVICE_NAME.idc

        我们需要在系统中添加触摸屏的配置文件,才能让系统不把触摸屏识别为触摸板,我们在frameworks/base/data/keyboards下添加ft5x0x_ts.idc文件       

        #Bsic Parameters
        touch.deviceType = touchScreen
        touch.orientationAware = 1

        # Size
        touch.size.calibration = diameter
        touch.size.scale = 10
        touch.size.bias = 0
        touch.size.isSummed = 0

       # Pressure
       # Driver reports signal strength as pressure.

       #

       # A normal thumb touch typically registers about 200 signal strength

       # units although we don't expect these values to be accurate.
       touch.pressure.calibration = amplitude
       touch.pressure.scale = 0.005
       # Orientation
       touch.orientation.calibration = none

       重新编译系统,我们可以在/out/target/product/rk3288/system/usr/idc/文件下查找到ft5x0x_ts.idc文件,将system.img下载到板子上,可以在system/usr/idc/下看到ft5x0x_ts.idc文件,这时,系统就可以正常识别触摸屏了。以上工作全部是是在Android4.4系统,kernel3.10版本上测试。


  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值