Modeling system-wide touches in iOS 7

GSSendEvent no longer works for me.

Even subscribing to a callback using GSEventRegisterEventCallBack does not work with touch events, [UIEvent _gsEvent] returns NULL.

What happened?

+3
ios ios7 jailbreak iphone-privateapi
Sep 30 '13 at 11:56 on
source share
1 answer

IOS now uses IOHIDEvent (in IOKit.framework) for touch events.

backboardd creates touch events and is sent to SpringBoard, and SpringBoard receives it through UIApplicationHandleEventQueue

In any case, if you have a jailbroken device and want to simulate a touch, just use the SimulateTouch library. You can download it from the Bigboss repository, and the API information is here http://api.iolate.kr/simulatetouch/

It is also open source. https://github.com/iolate/SimulateTouch

+7
Oct 19 '13 at 10:17
source share



All Articles