Skip to content

Commit

Permalink
Load controller mappings from gamecontrollerdb.txt file (XProger#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTheMan827 authored Mar 4, 2021
1 parent 7beaddc commit e6229da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/sdl2/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e6229da

Please sign in to comment.