Re: is the mouse button pressed?
Re: is the mouse button pressed?
- Subject: Re: is the mouse button pressed?
- From: Chris Ridd <email@hidden>
- Date: Wed, 29 May 2002 11:08:17 +0100
Ian <email@hidden> wrote:
>
In the Mac OS(<10) toolbox we had a function, I think it was
>
mousepressed() or mousedown() or buttondown() or something which simply
>
told us whether or not at that instant the mouse button was down. I could
>
really use something like that now, but can't find a cocoa equivalent. I
>
don't want to overide mouseDown or poll [NSApp currentEvent] or anything
>
like that, I just want to know that at the instant I call
>
NSImaginaryMethodThatReturnsYesOrNoAccordingToAnyMouseButtonBeingDownOrNo
>
t will let me know what I want to know :)
>
>
Have I missed this somewhere? Many thanks to anyone that can tell me yes
>
or no if this functionality already exists.
NSEvent has a class method to return the current mouse location
(+mouseLocation) but not the current button states AFAICS.
So this isn't what you are looking for (sorry) but it might inspire a poke
around the NSEvent documentation/header file to see if there's anything in
there relating to buttons.
Cheers,
Chris
_______________________________________________
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.