CGEventCreateMouseEvent - iPhone as remote control for Mac
CGEventCreateMouseEvent - iPhone as remote control for Mac
- Subject: CGEventCreateMouseEvent - iPhone as remote control for Mac
- From: Benjamin Ludwig <email@hidden>
- Date: Tue, 15 Dec 2009 11:15:56 +0100
Hi!
I'm Trying to do the following:
- Connect an iPhone app with a little Cocoa app using the AsyncSocket class
- Send touch events from the iPhone and post mouse events on the Mac with CGEventCreateMouseEvent to have a remote control for my Mac
I've written a little protocol for the communication using only necessary data, so the traffic is at a minimum. Everything works, but the mouse pointer acts not very smooth. Means that it feels like the mouse always is behind the finger and sometimes it even sticks for a while. When I log the incoming messages, it seems that they are arriving immediatly. Now I wonder if using CGEventCreateMouseEvent is not meant for this kind of usage.
Can someone help me?
Br,
Benjamin_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden