mouseMoved when inactive?
mouseMoved when inactive?
- Subject: mouseMoved when inactive?
- From: "A. Blue" <email@hidden>
- Date: Mon, 14 Nov 2005 21:28:17 -0800
Working on a panel window that hovers in the corner of the macintosh
display. I am using setAcceptsMouseMovedEvents on the NSWindow and
receiving mouseMoved events properly.
However when the application is inactive, I do not receive mouse moved events.
Is there any way to receive mouseMoved events in an inactive
application? I do not see this in the CGDirectDisplay API.
I can receive mouseEntered and mouseExited using tracking rectangles.
However the only way I can think of to get mouseMoved is to make the
application window active on a mouseEntered event. This is not good
since it is not clear how to activate the previous application on the
mouseExited event. And even if it is possible, there would be the
visible blip of that application being rapidly de-activated.
Is my only hope to write a device driver that keeps track of the mouse pointer?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden