Date: Sat, 28 Oct 2006 15:15:22 -0700 (Pacific Daylight Time)
Delivered-to: email@hidden
Delivered-to: email@hidden
On Fri, 27 Oct 2006, Eric Schlegel wrote:
On Oct 26, 2006, at 4:55 PM, Brad Johanson wrote:
We are working on an application that needs to track the location of the
mouse (and button state) even when it is not the active application. Is
anybody aware of any Carbon API calls that would allow us to do this? Or,
if this is something you can't do with Carbon, is there some other way we
could hook into OS X to do this?
Yes, you can use the GetEventMonitorTarget API to do this. Install event
handlers for kEventMouseMoved, kEventMouseDragged, kEventMouseUp, and
kEventMouseDown on this target, and you'll receive these events when your
application isn't active.
Eric (and Uli),
Thanks for your suggestions. I'll try them and then report back to the
list.
-Brad
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden