Browse Source

Allow testing effects on PS4 controllers

Note, this will switch the controller into advanced report mode which breaks DirectInput on Windows
Sam Lantinga 4 years ago
parent
commit
75721b191c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/testgamecontroller.c

+ 1 - 0
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);