diff --git a/src/Main/fg_io.cxx b/src/Main/fg_io.cxx index 4a75a78fb..9823a6311 100644 --- a/src/Main/fg_io.cxx +++ b/src/Main/fg_io.cxx @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -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; diff --git a/src/Main/options.cxx b/src/Main/options.cxx index efdaf3020..36ec8d48c 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -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 ) {