Re: Set the Cursor Position
Re: Set the Cursor Position
- Subject: Re: Set the Cursor Position
- From: Sherm Pendley <email@hidden>
- Date: Thu, 19 Aug 2010 21:43:37 -0400
On Thu, Aug 19, 2010 at 9:32 PM, Murat Konar <email@hidden> wrote:
> CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point);
>
> But heed the other's hints that, except for special classes of software
> (like a VNC app), software that warps the pointer's location independent of
> the mouse is much un-loved on the Mac.
One such exception would be 2d or 3d graphics apps, where it's
expected to have a tool that allows the user to click and drag to
scale or rotate an object. When such a tool is active, one might
respond to drag events by modifying the model to match the mouse
movement, then warping the cursor back to its original position.
sherm--
--
Cocoa programming in Perl:
http://camelbones.sourceforge.net
_______________________________________________
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