Re: How to capture left & right mouse down?
Re: How to capture left & right mouse down?
- Subject: Re: How to capture left & right mouse down?
- From: j o a r <email@hidden>
- Date: Tue, 18 Mar 2003 09:04:39 +0100
They are most likely two completely separate events. What you need to
do is to log the date of all left- and right mouse events and decide
for yourself if you'd like to treat a given event as a right+left event
by comparing the time diff.
j o a r
On Tuesday, Mar 18, 2003, at 08:35 Europe/Stockholm, David Thorup wrote:
I'll admit that I haven't investigated this too much, so be kind if
this is an easy question...
I'd like to be able to capture an event when a user presses both mouse
buttons (left & right) at the same time. This is of course assuming
that the user has a two button mouse, in cases that they don't have a
two button mouse I'd use some <key>-left-mouse-down combination.
At first glance I didn't see any methods that would handle this and I
tried getting the 'modifierFlags' in mouseDown to check for
NSRightMouseDown, but that didn't work. What do I need to do to see
if both mouse buttons are down?
_______________________________________________
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.