Commit 75721b191c074555a2f619c296744c320255954d

Sam Lantinga 2020-11-21T18:01:23

Allow testing effects on PS4 controllers Note, this will switch the controller into advanced report mode which breaks DirectInput on Windows

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c
index f484e6c..cf5eaf7 100644
--- a/test/testgamecontroller.c
+++ b/test/testgamecontroller.c
@@ -339,6 +339,7 @@ main(int argc, char *argv[])
     char guid[64];
 
     SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
+    SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1");
 
     /* Enable standard application logging */
     SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);