iOS 7 でシステム全体のタッチ イベントをシミュレートする方法を知っている人はいますか?
以前は iOS 6 以前で機能していた次のコードを使用しました。
CGPoint location = .... ;
struct GSTouchEvent {
GSEventRecord record;
GSHandInfo handInfo;
GSPathInfo pathInfo;
uint32_t newIn6;
} * event = (struct GSTouchEvent*) &touchEvent;
bzero(touchEvent, sizeof(touchEvent));
event->record.type = kGSEventHand;
event->record.windowLocation = location;
event->record.timestamp = _GSCurrentEventTimestamp();
event->record.infoSize = sizeof(GSHandInfo) + sizeof(GSPathInfo);
event->handInfo.type = getHandInfoType(0, 1);
event->handInfo.pathInfosCount = 1;
event->handInfo.pathInfos[0].pathIndex = 1;
event->handInfo.pathInfos[0].pathIdentity = 2;
event->handInfo.pathInfos[0].pathProximity = 0x03 ;
event->handInfo.pathInfos[0].pathLocation = location;
GSSendEvent((GSEventRecord*)event, port);