1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-01-17 21:09:00 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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