简体   繁体   English

Android - 是否可以访问原始电容输入数据?

[英]Android - Is it possible to access raw capacitive input data?

Does the Android platform have a public API for accessing the raw capacitive data coming from the touch screen? Android平台是否有用于访问来自触摸屏的原始电容数据的公共API?

The multi-touch input points are derived from a basic two-dimensional grid of binary capacitive data from the touch screen. 多点触摸输入点源自来自触摸屏的二进制电容数据的基本二维网格。 But is this data somehow accessible for use in an Android app? 但是这些数据是否可以在Android应用中使用?

Apparently iOS has a private API for this ( view here ), but it would surely not pass the approval process. 显然iOS有一个私有API( 在这里查看 ),但肯定不会通过批准过程。 I'm hoping Android would be more open to this usage. 我希望Android对这种用法更加开放。

Not an answer, but maybe something to look further into. 不是答案,但可能需要进一步研究。

Here are the kernel sources to various touch screen drivers. 以下是各种触摸屏驱动程序的内核源代码。 From scanning them a bit it doesn't seem that the kernel gives API access to this information, 从扫描它们看起来内核似乎没有API访问这些信息,

https://android.googlesource.com/kernel/common/+/android-3.4/drivers/input/touchscreen/ https://android.googlesource.com/kernel/common/+/android-3.4/drivers/input/touchscreen/

Some devices seem to report "raw data", eg see nexio_read_data in usbtouchscreen.c (seems oldschool IR type touch screen, not capacitive matrix) 有些设备似乎报告“原始数据”,如见nexio_read_datausbtouchscreen.c (好像老校友红外式触摸屏,电容式不矩阵)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM