#endif
#include "input.hxx"
+
+#include <simgear/compiler.h>
+
#include "FGMouseInput.hxx"
#include "FGKeyboardInput.hxx"
#include "FGJoystickInput.hxx"
#ifdef WITH_EVENTINPUT
+#if defined( SG_WINDOWS )
+//to be developed
+//#include "FGDirectXEventInput.hxx"
+//#define INPUTEVENT_CLASS FGDirectXEventInput
+#elif defined ( SG_MAC )
+#include "FGMacOSXEventInput.hxx"
+#define INPUTEVENT_CLASS FGMacOSXEventInput
+#else
#include "FGLinuxEventInput.hxx"
+#define INPUTEVENT_CLASS FGLinuxEventInput
+#endif
+
#endif
////////////////////////////////////////////////////////////////////////
set_subsystem( "input-mouse", new FGMouseInput() );
set_subsystem( "input-keyboard", new FGKeyboardInput() );
set_subsystem( "input-joystick", new FGJoystickInput() );
+#ifdef INPUTEVENT_CLASS
+ set_subsystem( "input-event", new INPUTEVENT_CLASS() );
+#endif
}
FGInput::~FGInput ()