如何在系统级别捕获和记录iOS Touch事件? [英] How to capture and record iOS Touch Events at system level?

查看:117
本文介绍了如何在系统级别捕获和记录iOS Touch事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想捕获系统级别的所有触摸事件,不是要捕获一个指定的应用程序,而是捕获所有应用程序,甚至是SpringBoard.我尝试了IOHIDEvent(

I want to capture all the touch events at the system level, I do not mean capturing at one specified app, but all the apps even the SpringBoard.I tried IOHIDEvent(https://github.com/kennytm/iphone-private-frameworks/tree/master/IOKit/hid), but the runtime headers was changed after iOS4, and now I can not get them of iOS6. May be GSEvent is also a good way, but does anyone known how to do this by GSEvent? Thank you!

推荐答案

在此处查看EntryDevLevel绝佳答案,了解如何使用iOHID在iOS上捕获和记录点击:

Take a look at EntryDevLevel excellent answer here on how to capture and record clicks on iOS using iOHID:

iOS触摸事件通知(私有API)

顺便说一句.他的解决方案也可以在非越狱的iOS上运行.

BTW. His solution works on non jailbroken iOS either.

这篇关于如何在系统级别捕获和记录iOS Touch事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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