Re: Mouse button down?
Re: Mouse button down?
- Subject: Re: Mouse button down?
- From: Eric Schlegel <email@hidden>
- Date: Tue, 6 Apr 2004 20:22:01 -0700
On Apr 6, 2004, at 7:30 PM, John Randolph wrote:
Thanks all, but what I actually wanted was to, at any point in time,
whether the app is active or inactive, and whether or not the the
mouse is in "my" window, test to see if the mouse button is down. I
need to do this because I don't want a specific action to happen
(which should happen whenever the mouse is up) to happen when the
mouse is down.
It's a little wasteful, but Button() will check whether the mouse
button is down at the moment you call it. Just don't call it in a
loop, please.
Only the left mouse button, though. If you want to check for any mouse
button being down, you can use GetCurrentButtonState.
-eric
_______________________________________________
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.