Commit 1f109990 authored by Rustom Jehangir's avatar Rustom Jehangir

SDL2: Library project config for Windows build.

parent e67514bc
...@@ -181,7 +181,7 @@ MacBuild { ...@@ -181,7 +181,7 @@ MacBuild {
$$BASEDIR/libs/lib/sdl2/msvc/include \ $$BASEDIR/libs/lib/sdl2/msvc/include \
LIBS += \ LIBS += \
-L$$BASEDIR/libs/lib/sdl2/msvc/lib \ -L$$BASEDIR/libs/lib/sdl2/msvc/lib/x86 \
-lSDL2main \ -lSDL2main \
-lSDL2 -lSDL2
} }
......
...@@ -62,7 +62,7 @@ WindowsBuild { ...@@ -62,7 +62,7 @@ WindowsBuild {
DebugBuild: DLL_QT_DEBUGCHAR = "d" DebugBuild: DLL_QT_DEBUGCHAR = "d"
ReleaseBuild: DLL_QT_DEBUGCHAR = "" ReleaseBuild: DLL_QT_DEBUGCHAR = ""
COPY_FILE_LIST = \ 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\\libs\\thirdParty\\libxbee\\lib\\libxbee.dll \
$$BASEDIR\\deploy\\libeay32.dll $$BASEDIR\\deploy\\libeay32.dll
......
...@@ -48,7 +48,7 @@ QMap<QString, Joystick*> JoystickSDL::discover(MultiVehicleManager* _multiVehicl ...@@ -48,7 +48,7 @@ QMap<QString, Joystick*> JoystickSDL::discover(MultiVehicleManager* _multiVehicl
SDL_JoystickClose(sdlJoystick); 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); ret[name] = new JoystickSDL(name, axisCount, buttonCount, hatCount, i, isGameController, _multiVehicleManager);
} else { } else {
qCDebug(JoystickLog) << "\tSkipping duplicate" << name; qCDebug(JoystickLog) << "\tSkipping duplicate" << name;
......
...@@ -5,12 +5,7 @@ ...@@ -5,12 +5,7 @@
#include "Vehicle.h" #include "Vehicle.h"
#include "MultiVehicleManager.h" #include "MultiVehicleManager.h"
#ifdef Q_OS_MAC #include <SDL.h>
#include <SDL.h>
#else
#include <SDL/SDL.h>
#endif
class JoystickSDL : public Joystick class JoystickSDL : public Joystick
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment