简体   繁体   English

在没有手指状物体的情况下检测屏幕上的压力

[英]Detect pressure on screen without finger-like object

I'm trying to measure the pressure of something on an android screen, however it can't be detected using an onTouch method because it isn't anything like a finger (something like a bottle, book, etc..). 我正在尝试测量android屏幕上某物的压力,但是无法使用onTouch方法检测到它的压力,因为它不像手指(瓶,书等)。 Is there a way to bypass this, or can the touch screen not read these kinds of objects? 有没有办法绕过这种情况,还是触摸屏无法读取此类对象?

I don't need a specific pressure measurement, just either 0 or 1, but nothing I've found ever addresses this. 我不需要特定的压力测量值,只需0或1,但我发现没有任何解决方法。

To give you a complete answer : 为了给您一个完整的答案:

"A capacitive touch screen is a control display that uses the conductive touch of a human finger or a specialized device for input. 电容式触摸屏是一种控制显示器,它使用人的手指或专用设备的导电触摸进行输入。

Unlike resistive and surface wave panels, which can sense input from either fingers or simple styluses, capacitive touch screen panels must be touched with a finger or a special capacitive pen or glove. 与可以检测手指或简单笔的输入的电阻和表面波面板不同,电容式触摸屏面板必须用手指或专用的电容笔或手套触摸。 The panel is coated with a material that can store electrical charges and the location of touch to the screen is signaled by the change in capacitance in that location." 面板涂有可以存储电荷的材料,并且触摸屏幕的位置通过该位置的电容变化来发出信号。”

Most devices these days use capacitive screens and therefore you probably wont be able to achieve what you want to achieve. 如今,大多数设备都使用电容屏,因此您可能无法实现想要实现的目标。 taken from : https://whatis.techtarget.com/definition/capacitive-touch-screen 摘自: https : //whatis.techtarget.com/definition/capacitive-touch-screen

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

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