Hi,

I need to export some QC compositions (that use custom plugins) to quicktime movies. I normally use a version of the QCTV sample code. In this case I need to use keyboard and mouse control to interact with the composition while it is exporting. The QCTV sample works great with Wii and midi controller patches (because they trigger different events).

QCTV uses a customView - not a QCView so setting acceptsFirstResponder:YES on the view doesn't work.

The QuartzComposerPlayer sample demonstrates mouse and keyboard event passing but uses:

- (void) renderWithEvent:(NSEvent*)event
and
- (void) sendEvent:(NSEvent*)event

to pass these events:

#define kRendererEventMask (NSLeftMouseDownMask | NSLeftMouseDraggedMask | NSLeftMouseUpMask | NSRightMouseDownMask | NSRightMouseDraggedMask | NSRightMouseUpMask | NSOtherMouseDownMask | NSOtherMouseUpMask | NSOtherMouseDraggedMask | NSKeyDownMask | NSKeyUpMask | NSFlagsChangedMask | NSScrollWheelMask | NSTabletPointMask | NSTabletProximityMask)

to the QCRenderer, whereas QCTV renders in the following method:

- (void) _renderTimer:(NSTimer*)timer

What would be the best (quickest / simplest) approach to modifying the QCTV sample to accept keyboard and mouse events?

My hunches are to create a
- (void) renderWithEvent:(NSEvent*)event
method that gets called in - (void) _renderTimer:(NSTimer*)time - but how do I get at the event? or duplicate the - (void) _renderTimer:(NSTimer*)timer method but as - (void) renderWithEvent:(NSEvent*)event that gets called in an added - (void) sendEvent:(NSEvent*)event method

I have a few gaps in my knowledge here! Any help would be gratefully received.

Thanks

Ian
*******************************
Ian Grant
Senior Lecturer in Digital Art
Faculty of the Arts
Thames Valley University
Ealing, UK
W5 5DX
<[EMAIL PROTECTED]>
*******************************



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to