• 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: Mouse button down?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mouse button down?


  • Subject: Re: Mouse button down?
  • From: Eric Schlegel <email@hidden>
  • Date: Tue, 6 Apr 2004 20:22:01 -0700

On Apr 6, 2004, at 7:30 PM, John Randolph wrote:

Thanks all, but what I actually wanted was to, at any point in time, whether the app is active or inactive, and whether or not the the mouse is in "my" window, test to see if the mouse button is down. I need to do this because I don't want a specific action to happen (which should happen whenever the mouse is up) to happen when the mouse is down.

It's a little wasteful, but Button() will check whether the mouse button is down at the moment you call it. Just don't call it in a loop, please.

Only the left mouse button, though. If you want to check for any mouse button being down, you can use GetCurrentButtonState.

-eric
_______________________________________________
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: 
 >Re: Mouse button down? (From: Sam McCandlish <email@hidden>)
 >Re: Mouse button down? (From: John Randolph <email@hidden>)

  • Prev by Date: Re: [now OT] Licensing/Implementing in Cocoa/Obj-C - Interest in product?
  • Next by Date: Re: [now OT] Licensing/Implementing in Cocoa/Obj-C - Interest in product?
  • Previous by thread: Re: Mouse button down?
  • Next by thread: Re: Key-Value coding for mutable one-many value (Java)
  • Index(es):
    • Date
    • Thread