• 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
Getting the mouse position in pixels in QC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the mouse position in pixels in QC


  • Subject: Getting the mouse position in pixels in QC
  • From: Jonathan Selander <email@hidden>
  • Date: Mon, 12 Jan 2009 10:29:33 +0100

Hi,

I'm trying to make something that can get the mouse position in pixels in quartz composer using "rendering destination dimensions" and "mouse". The idea is to dynamically be able to know if the mouse is over a specific image or not.

If i have the mouse at 1/4 of the screen, the "opengl position" or whatever it's called is -0.5, how can i use this to get the actual pixel position?

Thanks
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Getting the mouse position in pixels in QC
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: NSWindow With Only Close Button?
  • Next by Date: Re: What is the equivalent of a C++ pure-virtual function in Objective-C?
  • Previous by thread: Re: iTunes-like tail truncation for attributed strings
  • Next by thread: Re: Getting the mouse position in pixels in QC
  • Index(es):
    • Date
    • Thread