]> git.mxchange.org Git - flightgear.git/commitdiff
Added protocol to output out complete control positions.
authorcurt <curt>
Fri, 27 Jul 2001 14:23:01 +0000 (14:23 +0000)
committercurt <curt>
Fri, 27 Jul 2001 14:23:01 +0000 (14:23 +0000)
src/Main/fg_io.cxx
src/Main/options.cxx

index 4a75a78fb0ba65413981c8a4d0d08cad734f2fcc..9823a63116f1eb3d52a0687686dac26e8b4d06e9 100644 (file)
@@ -38,6 +38,7 @@
 #include <Network/garmin.hxx>
 #include <Network/joyclient.hxx>
 #include <Network/native.hxx>
+#include <Network/native_ctrls.hxx>
 #include <Network/nmea.hxx>
 #include <Network/props.hxx>
 #include <Network/pve.hxx>
@@ -85,6 +86,9 @@ static FGProtocol *parse_port_config( const string& config )
     } else if ( protocol == "native" ) {
        FGNative *native = new FGNative;
        io = native;
+    } else if ( protocol == "native_ctrls" ) {
+       FGNativeCtrls *native_ctrls = new FGNativeCtrls;
+       io = native_ctrls;
     } else if ( protocol == "nmea" ) {
        FGNMEA *nmea = new FGNMEA;
        io = nmea;
index efdaf30201465bc9745469282eeb86401d397bc0..36ec8d48c2bdf8b0eb9af8d773c013ee833e02ad 100644 (file)
@@ -792,6 +792,8 @@ parse_option (const string& arg)
        parse_channel( "atlas", arg.substr(8) );
     } else if ( arg.find( "--native=" ) == 0 ) {
        parse_channel( "native", arg.substr(9) );
+    } else if ( arg.find( "--native-ctrls=" ) == 0 ) {
+       parse_channel( "native_ctrls", arg.substr(15) );
     } else if ( arg.find( "--garmin=" ) == 0 ) {
        parse_channel( "garmin", arg.substr(9) );
     } else if ( arg.find( "--nmea=" ) == 0 ) {