Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pass mouse clicks from QC to app?



Nice, this could help. Not exactly sprite-based hit testing, but helpful all the same.

-e

On Feb 15, 2007, at 11:17 am, Ian Grant wrote:

Check out "MouseMenuHow2" and the attached patch (I think I downloaded from QuartzCompositions.com - but I renamed it and can't remember the original title or author.

<Interactivity - Mouse Detection - Motion - Excellent.qtz>

It uses number store macros to record mouse click locations and may hold the key to what you want to do. If you have a billboard at a know location (in pixels) you could always test for x - y coords within the ranges of the 'bounds' of the sprite.

It may work.

Regards.

Ian

*******************************
Ian Grant
Lecturer in Digital Art
Faculty of the Arts
Thames Valley University
Ealing, UK
W5 5DX
<email@hidden>
*******************************



On 15 Feb 2007, at 18:21, Eric Blanpied wrote:

Actually, my understanding is that that helps get mouse events from the app to the comp. I'm looking for a way to do hit-testing in QC, and know about it in Cocoa so I can do things based on it. My research seems to tell me I can't do that.

-e

On Feb 15, 2007, at 10:01 am, Troy Koelling wrote:

I think what you are looking for is here:
http://developer.apple.com/documentation/GraphicsImaging/ Conceptual/QuartzComposer/qc_play_renderer/chapter_6_section_1.html


Especially section 8 where it shows how to pass in the mouse location in a dictionary to your call to renderAtTime:arguments:

On Feb 14, 2007, at 4:48 PM, Eric Blanpied wrote:

Hi there,

I have an app that uses a QCRenderer to display it's main interface. Is there any way for my app to get info about mouse clicks within the comp based on my sprites & billboards?

thanks

-e
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/ email@hidden


This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/ian.grant %40mac.com


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/ericb% 40blanpied.net


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >Pass mouse clicks from QC to app? (From: Eric Blanpied <email@hidden>)
 >Re: Pass mouse clicks from QC to app? (From: Troy Koelling <email@hidden>)
 >Re: Pass mouse clicks from QC to app? (From: Eric Blanpied <email@hidden>)
 >Re: Pass mouse clicks from QC to app? (From: Ian Grant <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.