]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_io.cxx
Add the AIModel based air traffic subsystem from Durk Talsma.
[flightgear.git] / src / Main / fg_io.cxx
index 458f956c63f554e93a7e4e0726bcdef269fdfd39..55c84f7527b4d7f793f4b552c2b912266af4b7dc 100644 (file)
@@ -46,6 +46,7 @@
 #  include <Network/jpg-httpd.hxx>
 #endif
 #include <Network/joyclient.hxx>
+#include <Network/jsclient.hxx>
 #include <Network/native.hxx>
 #include <Network/native_ctrls.hxx>
 #include <Network/native_fdm.hxx>
@@ -108,6 +109,11 @@ FGIO::parse_port_config( const string& config )
        if ( protocol == "atc610x" ) {
             FGATC610x *atc610x = new FGATC610x;
            atc610x->set_hz( 30 );
+            if ( tokens.size() > 1 ) {
+                if ( tokens[1] == "no-rudder" ) {
+                    atc610x->set_use_rudder( false );
+                }
+            }
            return atc610x;
        } else if ( protocol == "atlas" ) {
            FGAtlas *atlas = new FGAtlas;
@@ -133,6 +139,9 @@ FGIO::parse_port_config( const string& config )
        } else if ( protocol == "joyclient" ) {
            FGJoyClient *joyclient = new FGJoyClient;
            io = joyclient;
+        } else if ( protocol == "jsclient" ) {
+            FGJsClient *jsclient = new FGJsClient;
+            io = jsclient;
        } else if ( protocol == "native" ) {
            FGNative *native = new FGNative;
            io = native;