• 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
Finding out mouse button state outside of event stream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding out mouse button state outside of event stream


  • Subject: Finding out mouse button state outside of event stream
  • From: Greg Hurrell <email@hidden>
  • Date: Tue, 12 Jul 2005 19:16:26 +0200

Does anyone know of an API for querying the current state of the mouse button(s) outside of the event stream?

Basically I am looking for something like NSEvent's mouseLocation or NSWindow's mouseLocationOutsideOfEventStream methods, except for button state instead of location.

The Quartz Services Reference has some useful APIs in it -- for example you can use CGPostMouseEvent to generate events at any time (including *setting* the button state) -- but I can't see anything for *getting* the button state.

Basically I just want to do a test in my app to make sure the mouse button isn't down before I go ahead and do something. Any ideas?

Thanks in advance,
Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Finding out mouse button state outside of event stream
      • From: Greg Hurrell <email@hidden>
  • Prev by Date: Re: alignment issue - Codewarrior vs XCode
  • Next by Date: Re: nil properties in Fetch Requests
  • Previous by thread: Re: Drawing an NSImage into a GWorld
  • Next by thread: Re: Finding out mouse button state outside of event stream
  • Index(es):
    • Date
    • Thread