X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInput%2Finput.cxx;h=3804e8e9408c404ffb7a4ecb1fdcb487d7c21d8e;hb=5151f7f5e0ba7c7e6688bdfbc4cea365196e1ed3;hp=6a36f9d806f0d87cb75d7a4fe661a60cc300cac7;hpb=aea9c750f3f839817f8dcbdd7bc6bb4f81b97836;p=flightgear.git diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 6a36f9d80..3804e8e94 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -27,12 +27,26 @@ #endif #include "input.hxx" + +#include + #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 //////////////////////////////////////////////////////////////////////// @@ -45,6 +59,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 ()