Finding out mouse button state outside of event stream
Finding out mouse button state outside of event stream
- Subject: Finding out mouse button state outside of event stream
- From: Greg Hurrell <email@hidden>
- Date: Tue, 12 Jul 2005 19:16:26 +0200
Does anyone know of an API for querying the current state of the
mouse button(s) outside of the event stream?
Basically I am looking for something like NSEvent's mouseLocation or
NSWindow's mouseLocationOutsideOfEventStream methods, except for
button state instead of location.
The Quartz Services Reference has some useful APIs in it -- for
example you can use CGPostMouseEvent to generate events at any time
(including *setting* the button state) -- but I can't see anything
for *getting* the button state.
Basically I just want to do a test in my app to make sure the mouse
button isn't down before I go ahead and do something. Any ideas?
Thanks in advance,
Greg
_______________________________________________
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