]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/input.cxx
Merge branch 'timoore/atmos'
[flightgear.git] / src / Input / input.cxx
index 6a36f9d806f0d87cb75d7a4fe661a60cc300cac7..d32c207d52deed20692a34d4e60bf68413ce1e65 100644 (file)
 #include "FGJoystickInput.hxx"
 
 #ifdef WITH_EVENTINPUT
+#if defined( UL_WIN32 )
+//to be developed
+//#include "FGDirectXEventInput.hxx"
+//#define INPUTEVENT_CLASS FGDirectXEventInput
+#elif defined ( UL_MAC_OSX )
+#include "FGMacOSXEventInput.hxx"
+#define INPUTEVENT_CLASS FGMacOSXEventInput
+#else
 #include "FGLinuxEventInput.hxx"
+#define INPUTEVENT_CLASS FGLinuxEventInput
+#endif
+
 #endif
 
 ////////////////////////////////////////////////////////////////////////
@@ -45,6 +56,9 @@ FGInput::FGInput ()
   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 ()