diff options
author | Sam Lantinga <slouken@libsdl.org> | 2020-11-06 15:54:18 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2020-11-06 15:54:18 -0800 |
commit | 80d6b8300300d91aaea28f9e927e1a12c688810f (patch) | |
tree | dc9b81a8496fbbfc154383a1d7cc496508c379d3 /test/testgamecontroller.c | |
parent | 2fe9b8533d5fce06ac06c30f55d3836174ec7c0e (diff) | |
download | sdl-80d6b8300300d91aaea28f9e927e1a12c688810f.tar.gz |
Don't try to map the accelerometer as a game controller
Diffstat (limited to 'test/testgamecontroller.c')
-rw-r--r-- | test/testgamecontroller.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c index 391067587..0394e5c50 100644 --- a/test/testgamecontroller.c +++ b/test/testgamecontroller.c @@ -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); |