Re: Set the Cursor Position
Re: Set the Cursor Position
- Subject: Re: Set the Cursor Position
- From: Raleigh Ledet <email@hidden>
- Date: Sun, 29 Aug 2010 19:53:29 -0700
On Aug 19, 2010, at 6: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.
Doing that doesn't play well with absolute pointing devices like tablet. If you need to know how the use intended to move the cursor even though the cursor is pinned to the edge of the screen, use the delta values in the event.
-raleigh
>
> 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
_______________________________________________
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