Don't try to map the accelerometer as a game controller

This commit is contained in:
Sam Lantinga 2020-11-06 15:54:18 -08:00
parent d5e367a466
commit 5a92edee03
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);