Global mouse tracking
Global mouse tracking
- Subject: Global mouse tracking
- From: Dave Warker <email@hidden>
- Date: Thu, 17 Oct 2002 13:12:29 -0400
I'm rewriting a "classic" Mac OS accessibility control panel as a
background Mac OS X application and I need to continuously monitor the
current global mouse position and periodically post my own events (for
dwell based clicking). CGRemoteOperation.h covers event posting but I'm
looking for a low processor overhead way to monitor mouse movement from
a secondary MPThread in a Carbon app (the main UI thread will be
managing system-wide floating utility windows.) I don't want to resort
to polling unless there is no other way. Ideally, I'm hoping for a
method to register for a global equivalent to "mouse moved" events. I
would also rather not require 10.2 if possible.
Also, to completely duplicate the classic version I need the ability to
detect all of the user's mouse clicks and key presses. I don't have to
necessarily do any processing on them, just know when someone has
physically clicked the mouse or typed on the keyboard as opposed to one
of our synthetic events. This isn't essential but it allows us to stay
out of the way when we aren't needed.
Thanks,
Dave
-----
Dave Warker <email@hidden>
http://warker.com
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.