Better make that ...

  setlistener("/gear/launchbar/state", func(n) {
      setprop("/fdm/jsbsim/launchbar/launch-bar-state", n.getValue() == 
"Engaged");
  }, 0, 0);

... because I seem to remember that the property is written to
quite frequently (also a bug, if you ask me), and the second
0 makes sure that the listener function is only triggered
when the property value actually changed. Trickier now!  :-)

m.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to