• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to capture left & right mouse down?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How to capture left & right mouse down? (From: David Thorup <email@hidden>)

  • Prev by Date: Re: Help Book Problems
  • Next by Date: Re: web services?
  • Previous by thread: How to capture left & right mouse down?
  • Next by thread: NSAutoreleasePool: how does it really work?
  • Index(es):
    • Date
    • Thread