• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CGEventCreateMouseEvent - iPhone as remote control for Mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: NSUndoManager issues
  • Next by Date: [iPhone] Sample code for live camera stream?
  • Previous by thread: Re: NSUndoManager issues
  • Next by thread: [iPhone] Sample code for live camera stream?
  • Index(es):
    • Date
    • Thread