Use GSEvent to send touch event,but it's invalid
问题 I code to send a touch event to my app by GSEvent,get mach_port_t by GSCopyPurpleSystemEventPort(). the sending function was launched after the ApplicationDidFinishLaunch:option have completed.the app is UIControlView app. code as follow: void handleMouseEventAtPoint(CGPoint point, int buttons) { // NOTE: Must store button state for comparision, port for // mouse dragging and button up static int buttons_; static mach_port_t port_; int diff = buttons_ ^ buttons; bool twas = ((buttons_ & 0x1)