曼波鱼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 Qt下使用tcp获取数据的详细操作
    • ¥15 idea右下角设置编码是灰色的
    • ¥15 全志H618ROM新增分区
    • ¥20 jupyter保存图像功能的实现
    • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示
    • ¥15 NAO机器人的录音程序保存问题
    • ¥15 C#读写EXCEL文件,不同编译
    • ¥15 MapReduce结果输出到HBase,一直连接不上MySQL
    • ¥15 扩散模型sd.webui使用时报错“Nonetype”
    • ¥15 stm32流水灯+呼吸灯+外部中断按键