如何获得原始的触摸屏数据? [英] How to get raw touchscreen data?

查看:245
本文介绍了如何获得原始的触摸屏数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以在我的iPhone应用程序中获得触摸事件。但这些触摸事件为我过滤。如果我将设备按在我的脸上,它会过滤掉这些触摸事件,因为它可以检测到它不是手指。

I know I can get touch events in my iPhone app. But these touch events are filtered for me. If I press the device against my face, it filters out these touch events because it can detect its not a finger.

我如何获得原始触摸事件,而不是以任何方式过滤?

How would I get the raw touch events, not filtered in any way?

推荐答案

没有公共API。你可以得到的最接近的是GSEvent,来自GraphicsServices的私有框架。

There is no public API for this. The closest you can get is GSEvent, from the GraphicsServices private framework.

这篇关于如何获得原始的触摸屏数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆