diff --git a/QGCExternalLibs.pri b/QGCExternalLibs.pri index 20f67e28c6cfacdfb94b4aa4d738f888801e1fae..d6505a83fff9d6b06da811ca578fc3cd9561a069 100644 --- a/QGCExternalLibs.pri +++ b/QGCExternalLibs.pri @@ -181,7 +181,7 @@ MacBuild { $$BASEDIR/libs/lib/sdl2/msvc/include \ LIBS += \ - -L$$BASEDIR/libs/lib/sdl2/msvc/lib \ + -L$$BASEDIR/libs/lib/sdl2/msvc/lib/x86 \ -lSDL2main \ -lSDL2 } diff --git a/QGCSetup.pri b/QGCSetup.pri index 1a91836f2feae28c4c822869c5214316cce20fe1..40cbb58bff76f504972db5557a5a608a7b5cd000 100644 --- a/QGCSetup.pri +++ b/QGCSetup.pri @@ -62,7 +62,7 @@ WindowsBuild { DebugBuild: DLL_QT_DEBUGCHAR = "d" ReleaseBuild: DLL_QT_DEBUGCHAR = "" COPY_FILE_LIST = \ - $$BASEDIR\\libs\\lib\\sdl2\\win32\\SDL2.dll \ + $$BASEDIR\\libs\\lib\\sdl2\\msvc\\lib\\x86\\SDL2.dll \ $$BASEDIR\\libs\\thirdParty\\libxbee\\lib\\libxbee.dll \ $$BASEDIR\\deploy\\libeay32.dll diff --git a/src/Joystick/JoystickSDL.cc b/src/Joystick/JoystickSDL.cc index 25a2f5b2e7ac4e8bcc0dd9033257f65c634823b5..c23448026535b13dd9eab5f8d35a2e8986f04f0d 100644 --- a/src/Joystick/JoystickSDL.cc +++ b/src/Joystick/JoystickSDL.cc @@ -48,7 +48,7 @@ QMap JoystickSDL::discover(MultiVehicleManager* _multiVehicl SDL_JoystickClose(sdlJoystick); - qCDebug(JoystickLog) << "\t" << name << "axes:" << axisCount << "buttons:" << buttonCount << "hats:" << hatCount; + qCDebug(JoystickLog) << "\t" << name << "axes:" << axisCount << "buttons:" << buttonCount << "hats:" << hatCount << "isGC:" << isGameController; ret[name] = new JoystickSDL(name, axisCount, buttonCount, hatCount, i, isGameController, _multiVehicleManager); } else { qCDebug(JoystickLog) << "\tSkipping duplicate" << name; diff --git a/src/Joystick/JoystickSDL.h b/src/Joystick/JoystickSDL.h index 576cf70b23d45d142cb76005b2fb7c5e38cac1ae..2c4a9ca6aeb93fae1880f4f8b3e266604c181eb3 100644 --- a/src/Joystick/JoystickSDL.h +++ b/src/Joystick/JoystickSDL.h @@ -5,12 +5,7 @@ #include "Vehicle.h" #include "MultiVehicleManager.h" -#ifdef Q_OS_MAC - #include -#else - #include -#endif - +#include class JoystickSDL : public Joystick {