[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Event handling



Pierre Phaneuf wrote:

>> I like you idea of emitters and sinks, though.  If you ever get
>> something like this going, I'd love to see it in code.
>
>That idea is from the Java 1.1 event model. It is a generalized version
>of what you said. Instead of processing everything in the main loop
>(with something like a giant switch statement), sinks subscribe to
>emitters, which will send events directly to the interested sinks.

Some time ago I took such a thing from Gtk-- and adapted it for
PenguinPlay. It will most likely be completely replaced, but the docs are
still on the PPlay homepage (wait -
http://sunsite.auc.dk/penguinplay/PenguinDoc/messaging/ )


Cu
	Christian
--

Win98 - Now with DirectCrash [tm]