Re: Mouse location in CG
Re: Mouse location in CG
- Subject: Re: Mouse location in CG
- From: Eric Schlegel <email@hidden>
- Date: Thu, 18 Jan 2007 08:42:00 -0800
On Jan 18, 2007, at 12:57 AM, Giovanni Donelli wrote:
Thanks for the design insight.
Is there a way to get the mouse position at the cocoa or carbon level,
in the CG coordinate system (ie. Y zero is at the top left corner)? I
know I can get the the screens and then convert it, but I would like
not to do that if possible.
Carbon provides GetGlobalMouse, which returns coordinates in the CG
coordinate system.
Cocoa provides [NSEvent mouseLocation], although I think that's with
Y=0 at the bottom left of the main screen.
-eric
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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