On Wed, 2009-08-26 at 16:39 +0200, Mathias Heyer wrote:
> Hi,
> 
>  
> 
> as far as I know, the event-mechanism is able to forward render
> client-local events to the application node.
> 
> Is there a similar way to send events from the application node to
> (all) the render clients?


Hey Mathias,

I do this by grabbing events in Config::handleEvent, adding them to an
Event vector in FrameData which is sent to the clients.

On the client end, you just throw all the events in the received vector
to the clients Config by calling Config::handleEvent directly.

The only problem would be if the sending node processes its own event
which results in an event loop ... I just wrap the event with a struct
that includes the nodes id to avoid this. 


This setup seems to work fine to automatically send input
(mouse/keyboard) events so far, as well as for a custom synched event
structure ...

----
Dan Wilcox
Creative Engineering
Ars Electronica Futurelab
_______________________________________________
eq-dev mailing list
[email protected]
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Reply via email to