#include <Network/nmea.hxx>
#include <Network/pve.hxx>
#include <Network/rul.hxx>
+#include <Network/joyclient.hxx>
#include <Time/timestamp.hxx>
} else if ( protocol == "rul" ) {
FGRUL *rul = new FGRUL;
io = rul;
+ } else if ( protocol == "joyclient" ) {
+ FGJoyClient *joyclient = new FGJoyClient;
+ io = joyclient;
} else {
return NULL;
}
_control87(MCW_EM, MCW_EM); /* defined in float.h */
#endif
- // Initialize ssg (from plib). Needs to come before we do any
- // other ssg related stuff
- ssgInit();
-
// set default log levels
fglog().setLogLevels( FG_ALL, FG_INFO );
// Initialize the various GLUT Event Handlers.
if( !fgGlutInitEvents() ) {
- FG_LOG( FG_GENERAL, FG_ALERT,
- "GLUT event handler initialization failed ..." );
- exit(-1);
+ FG_LOG( FG_GENERAL, FG_ALERT,
+ "GLUT event handler initialization failed ..." );
+ exit(-1);
}
+
+ // Initialize ssg (from plib). Needs to come before we do any
+ // other ssg stuff, but after opengl/glut has been initialized.
+ ssgInit();
// Initialize the user interface (we need to do this before
// passing off control to glut and before fgInitGeneral to get our
parse_channel( "pve", arg.substr(6) );
} else if ( arg.find( "--rul=" ) != string::npos ) {
parse_channel( "rul", arg.substr(6) );
+ } else if ( arg.find( "--joyclient=" ) != string::npos ) {
+ parse_channel( "joyclient", arg.substr(12) );
#ifdef FG_NETWORK_OLK
} else if ( arg == "--disable-network-olk" ) {
network_olk = false;