• 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
How to capture left & right mouse down?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to capture left & right mouse down?


  • Subject: How to capture left & right mouse down?
  • From: David Thorup <email@hidden>
  • Date: Tue, 18 Mar 2003 00:35:12 -0700

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?

Thanks for the help!
____________________________________

Dave Thorup
Software Engineer
email@hidden

www.corda.com
Interactive data driven graphics.
_______________________________________________
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.

  • Follow-Ups:
    • Re: How to capture left & right mouse down?
      • From: j o a r <email@hidden>
  • Prev by Date: New Obj-C root class and forwarding
  • Next by Date: Re: Help Book Problems
  • Previous by thread: Re: New Obj-C root class and forwarding
  • Next by thread: Re: How to capture left & right mouse down?
  • Index(es):
    • Date
    • Thread