• 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
multiple mouse buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple mouse buttons


  • Subject: multiple mouse buttons
  • From: Nicholas Francis <email@hidden>
  • Date: Tue, 27 Jan 2004 16:29:00 +0100

Hi guys...

I'm trying to make my app differentiate between multiple mouse buttons held down at the same time.


My code basically goes like this (inside an NSView subclass):
-(void) handleMouseDown:(NSEvent *)e {
// here I need to determine which buttons were held down.
// problem is that [e buttonNumber] just gives me the index, not a bitmask.
}

-(void)mouseDown:(NSEvent *)e {
[self handleMouseDown:e];
}
- (void)rightMouseDown:(NSEvent *)e {
[self handleMouseDown:e];
}
- (void)otherMouseDown:(NSEvent *)e {
[self handleMouseDown:e];
}

Is there a maybe a Carbon function to get this info?
I've tried maintaining the flags myself, but when I'm in the middle of a drag it seems to ignore new buttons.

TIA,
Nicholas Francis
_______________________________________________
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.

  • Prev by Date: Re: NSURLDownload step by step
  • Next by Date: Apple Mail Plugin
  • Previous by thread: Re: Resize with buttons
  • Next by thread: Apple Mail Plugin
  • Index(es):
    • Date
    • Thread