曼波鱼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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?