问题
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!
回答1:
Take a look at EntryDevLevel excellent answer here on how to capture and record clicks on iOS using iOHID:
iOS touch event notifications (private API)
BTW. His solution works on non jailbroken iOS either.
来源:https://stackoverflow.com/questions/17107001/how-to-capture-and-record-ios-touch-events-at-system-level