# include <math.h>
#endif
+#ifdef HAVE_WINDOWS_H
+# include <windows.h>
+#endif
+
#include <GL/glut.h>
-#include <simgear/xgl/xgl.h>
#include <stdio.h>
#include <stdlib.h>
#include <FDM/LaRCsim.hxx>
#include <FDM/MagicCarpet.hxx>
#include <Include/general.hxx>
-#include <Joystick/joystick.hxx>
+#include <Input/input.hxx>
+// #include <Joystick/joystick.hxx>
#include <Objects/matlib.hxx>
#include <Navaids/fixlist.hxx>
#include <Navaids/ilslist.hxx>
#include "fg_init.hxx"
#include "fg_io.hxx"
+#include "fg_commands.hxx"
+#include "fg_props.hxx"
#include "options.hxx"
#include "globals.hxx"
-#include "bfi.hxx"
#if defined(FX) && defined(XMESA)
#include <GL/xmesa.h>
current_fixlist->init( p_fix );
+ ////////////////////////////////////////////////////////////////////
+ // Initialize the built-in commands.
+ ////////////////////////////////////////////////////////////////////
+ fgInitCommands();
+
+
////////////////////////////////////////////////////////////////////
// Initialize the radio stack subsystem.
////////////////////////////////////////////////////////////////////
// Initialize the joystick subsystem.
////////////////////////////////////////////////////////////////////
- if ( ! fgJoystickInit() ) {
- SG_LOG( SG_GENERAL, SG_ALERT, "Error in Joystick initialization!" );
- }
+ // if ( ! fgJoystickInit() ) {
+ // SG_LOG( SG_GENERAL, SG_ALERT, "Error in Joystick initialization!" );
+ // }
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
- // Initialize the BFI.
+ // Initialize the default (kludged) properties.
////////////////////////////////////////////////////////////////////
- FGBFI::init();
+ fgInitProps();
////////////////////////////////////////////////////////////////////
controls.bind();
+ ////////////////////////////////////////////////////////////////////
+ // Initialize the input subsystem.
+ ////////////////////////////////////////////////////////////////////
+
+ current_input.init();
+ current_input.bind();
+
+
////////////////////////////////////////////////////////////////////////
// End of subsystem initialization.
////////////////////////////////////////////////////////////////////