Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有可能获得带有 Android 触摸屏上触摸点的原始数据的数组/位图?(见图)
到目前为止我只知道命令 event.getX(), event.getY(), event.getSize, ...
在用户空间中是不可能做到这一点的。触摸输入驱动程序是内核的一部分,负责获取“位图”并将其转换为不同的点。为了实现您想要实现的目标,您需要构建一个新的 android 内核,其触摸驱动程序的工作方式不同。这些新的驱动程序必须提供一个 API 来与未处理的数据进行交互。