Re: current mouse buttons state
Re: current mouse buttons state
- Subject: Re: current mouse buttons state
- From: Charles Crowley <email@hidden>
- Date: Wed, 12 Nov 2003 22:42:44 -0700
Anybody know how to determine the current mouse buttons state ? I need
to determine at some random interval wether the left mouse button is
down or up.
(I know [NSEvent mouseLocation] will give the current mouse location)
It is a deprecated function but
(BOOL) Button()
returns the state of the left (or, strangely enough, the middle) mouse
button.
It is a Carbon function so you must include the Carbon framework in
Frameworks.Linked Frameworks (where Cocoa.framework is).
--Charlie Crowley
_______________________________________________
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.