1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

a simple implement for game controller

This commit is contained in:
kdmcser
2024-04-03 20:34:22 +08:00
parent fd0dd7441a
commit beaebb3a5f
9 changed files with 438 additions and 1 deletions

View File

@@ -173,7 +173,7 @@ ScreenHandler::ScreenHandler()
SDL_SetHint(SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitor");
#endif
if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_AUDIO))
if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_GAMECONTROLLER))
{
logGlobal->error("Something was wrong: %s", SDL_GetError());
exit(-1);