曼波鱼Sunfish 2014-07-10 03:28
浏览 5259

Android 传感器中,压力传感器(感应手指的触摸压力,非气压传感器)的实现问题

关于Android是否可以获取触摸压力,SDK中有这样一段话支持这个观点:
“For example, when the user first touches the screen, the system delivers a touch event to the appropriate View with the action code ACTION_DOWN and a set of axis values that include the X and Y coordinates of the touch and information about the pressure, size and orientation of the contact area.”
其中
1、MotionEvent.getPressure():“Returns the current pressure of this event for the given pointer index”
2、MotionEvent.getSize():“Returns a scaled value of the approximate size for the given pointer index”
受有道云笔记手写功能启发,请问有压力传感器开发经验的同行具体实现中主要用哪个函数?该怎么用?精确率如何?
参考:http://docs.huihoo.com/android/4.2/reference/android/view/MotionEvent.html#AXIS_PRESSURE

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作