Getting Modifier Flags in Timer Generated Event Processing
Getting Modifier Flags in Timer Generated Event Processing
- Subject: Getting Modifier Flags in Timer Generated Event Processing
- From: Henry McGilton <email@hidden>
- Date: Fri, 21 Nov 2003 10:40:30 -0800
What Ho All,
I have poked around on mamasam and have not found anything
that quite addresses the requirement.
Right now I have a setup where I have a screen-sized transparent
window that watches mouse moved events.
The application also needs to stay on top and track the mouse even
when the application is not the active application. To do this,
I have a delegate that receives applicationDidResignActive and
applicationDidBecomeActive methods.
When the application is not the active application, it tracks
the mouse location via a timer-driven loop that uses the
[NSEvent mouseLocation] class method to obtain the position of
the mouse every time the timer fires. So far, so good.
However, I now wish to get hold of modifier flags (such as Option
Key down), and the [NSEvent mouseLocation] class method does not
provide any of this other information.
I am wondering if the startPeriodicEventsAfterDelay method of
NSEvent is suitable for doing this job, or is there some other
nifty way of getting to what I am trying to do.
Any ideas appreciated.
Best Wishes,
........ Henry
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden |
http://www.trilithon.com
|
===============================+============================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.