1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-01 19:00:34 +02:00

Load controller mappings from gamecontrollerdb.txt file (#328)

This commit is contained in:
DanTheMan827
2021-03-04 15:45:07 -06:00
committed by GitHub
parent 7beaddc39b
commit e6229da94f

View File

@@ -462,7 +462,7 @@ void inputUpdate() {
int main(int argc, char **argv) { int main(int argc, char **argv) {
int w, h; int w, h;
SDL_GameControllerAddMappingsFromFile("gamecontrollerdb.txt");
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO|SDL_INIT_EVENTS|SDL_INIT_GAMECONTROLLER); SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO|SDL_INIT_EVENTS|SDL_INIT_GAMECONTROLLER);
SDL_GetCurrentDisplayMode(0, &sdl_displaymode); SDL_GetCurrentDisplayMode(0, &sdl_displaymode);