int target= OS.GetEventDispatcherTarget(); int event= evt[0];  MacEvent.trackStateMask(event);  OS.SendEventToEventTarget(event, target);
int event= evt[0]; OS.SendEventToEventTarget(event, OS.GetEventDispatcherTarget());
public boolean readAndDispatch () {	checkDevice ();	int[] evt= new int[1];	int rc= OS.ReceiveNextEvent(null, OS.kEventDurationNoWait, true, evt);		switch (rc) {	case OS.kNoErr:		int target= OS.GetEventDispatcherTarget();		int event= evt[0];				MacEvent.trackStateMask(event);						OS.SendEventToEventTarget(event, target);		OS.ReleaseEvent(event);		repairPending();		runDeferredEvents ();		return true;			case OS.eventLoopTimedOutErr:		break;	// no event: run async			default:		System.out.println("readAndDispatch: error " + rc);		break;	}	return runAsyncMessages ();}