Skip to content

Commit

Permalink
Don't try to map the accelerometer as a game controller
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 6, 2020
1 parent d5e367a commit 5a92ede
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/controllermap.c
Expand Up @@ -708,6 +708,8 @@ main(int argc, char *argv[])
int i;
SDL_Joystick *joystick;

SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");

/* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);

Expand Down
2 changes: 2 additions & 0 deletions test/testgamecontroller.c
Expand Up @@ -228,6 +228,8 @@ main(int argc, char *argv[])
int nController = 0;
char guid[64];

SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");

/* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);

Expand Down

0 comments on commit 5a92ede

Please sign in to comment.