mirror of https://github.com/encounter/SDL.git
Don't try to map the accelerometer as a game controller
This commit is contained in:
parent
d5e367a466
commit
5a92edee03
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue