commit 99317f86
Enable game controllers. It works with ImGui
Changed files
| M | src/sago_common.cpp before |
diff --git a/src/sago_common.cpp b/src/sago_common.cpp
index 22d65e9..4274181 100644
--- a/src/sago_common.cpp
+++ b/src/sago_common.cpp
@@ -116,7 +116,7 @@ static SDL_Window* win = nullptr;
void InitGame() {
int width = globalData.xsize, height = globalData.ysize;
- SDL_Init(SDL_INIT_VIDEO);
+ SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER);
IMG_Init(IMG_INIT_PNG);
TTF_Init();
Mix_Init(MIX_INIT_OGG);