问题描述
是否有可能在Android触摸显示屏上获取触摸点的原始数据的数组/位图? (见图)
Is there a possibility to get an array/bitmap with the raw data of the touched spots on an Android touch display? (See illustration)
到目前为止,我只知道命令event.getX(),event.getY(),event.getSize,...
So far I only know the commands event.getX(), event.getY(), event.getSize, ...
推荐答案
不能在用户空间中执行此操作。触摸输入驱动程序是内核的一部分,负责将位图转换为不同的点。为了完成您要实现的任务,您需要构建一个新的Android内核,其触摸驱动程序的工作方式不同。这些新的驱动程序必须提供一个API来与未处理的数据进行交互。
It is not possible to do this in user space. The touch input driver, part of the kernel, is responsible for taking the 'bitmap' and converting it into different points. In order to accomplish what you are trying to achieve, you need to build a new android kernel whose touch drivers work differently. These new drivers would have to provide an API for interacting with the unprocessed data.
这篇关于Android:从触摸事件中获取原始位图数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!