Re: Set the Cursor Position
Re: Set the Cursor Position
- Subject: Re: Set the Cursor Position
- From: email@hidden
- Date: Fri, 20 Aug 2010 09:19:51 -0600
Thanks to all for support!
-koko
On Aug 20, 2010, at 9:11 AM, Ken Thomases wrote:
On Aug 19, 2010, at 8:43 PM, Sherm Pendley wrote:
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.
For that, you probably want to disassociate the mouse from the
cursor with CGAssociateMouseAndMouseCursorPosition(false) and hide
the cursor.
Regards,
Ken
_______________________________________________
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
_______________________________________________
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