git repos / sago_multi_scrambler_puzzle2

commit 99317f86

Poul Sander · 2024-07-27 11:40
99317f86a6246dd9a25d0c40aca918c954dd5b9a patch · browse files
parent 3dd529860b538617a4f6a35177a28b60dc13b904

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);