How to get raw touchscreen data?

2019-07-01 14:28发布

问题:

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?

回答1:

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