Whoops ... shouldn't write such things from memory ...

* Melchior FRANZ -- Thursday 15 November 2007:
>   func(<changed-node>, <listened-to-node>, <event>, <is-parent-event>)
                                                      ^^^^^^^^^^^^^^^^^

Make that <is-child-event>, and it's usually 0. Only in runtime=2
mode it is 1 when the <changed-node> is actually a child of the
<listened-to-node>. But I don't expect that many will use this
listener mode at all, so no reason to understand it all.  :-)

See debug.prop_trace() for how to use a type-2 listener.
Or type this into the Nasal console:

  setlistener("", func { debug.dump(arg) }, 0, 2);

Yes, we are listening to the root node! :-)  You'll see all four
args dumped to the terminal for *every* "listenable" property
event in the whole tree. That slows fgfs down a bit, but is
worth trying out.  :-)

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to