MEDAL_SERVER_HOST = www.parallelrealities.co.uk
MEDAL_SERVER_PORT = 80
-CXXFLAGS += -std=c++11
CXXFLAGS += `pkg-config --cflags sdl2 SDL2_mixer SDL2_image SDL2_ttf SDL2_net` -DVERSION=$(VERSION) -DRELEASE=$(RELEASE) -DUSEPAK=$(USEPAK)
CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"$(DATADIR)\" -DUNIX -DGAMEPLAYMANUAL=\"$(DOCDIR)index.html\" -Wall
CXXFLAGS += -DLOCALEDIR=\"$(LOCALEDIR)\" -DMEDAL_SERVER_HOST=\"$(MEDAL_SERVER_HOST)\" -DMEDAL_SERVER_PORT=$(MEDAL_SERVER_PORT)
CXX = i686-w64-mingw32-g++
-CXXFLAGS += -std=c++11 -Dmain=SDL_main
+CXXFLAGS += -Dmain=SDL_main
CXXFLAGS += -I/your/mingw/include
CXXFLAGS += -DVERSION=$(VERSION) -DRELEASE=$(RELEASE) -DUSEPAK=$(USEPAK)
CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"\" -DGAMEPLAYMANUAL=\"doc/index.html\" -Wall
#include "headers.h"
Joystick::Joystick():
- sensitivity(25000),
- control{-2, -2, -2, -2, 1, 0, 3, 7 ,6}
+ sensitivity(25000)
{
+ static int defaultValue[CONTROL::MAX] = {-2, -2, -2, -2, 1, 0, 3, 7, 6};
+
+ for (int i = 0; i < CONTROL::MAX; i++)
+ control[i] = defaultValue[i];
}
}
// Increase the size of the window if we have large desktop resolutions
- SDL_DisplayMode displayMode{0};
+ SDL_DisplayMode displayMode = {0};
SDL_GetDesktopDisplayMode(0, &displayMode);
int w = graphics.screen->w;
int h = graphics.screen->h;