From 75721b191c074555a2f619c296744c320255954d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 21 Nov 2020 18:01:23 -0800 Subject: [PATCH] Allow testing effects on PS4 controllers Note, this will switch the controller into advanced report mode which breaks DirectInput on Windows --- test/testgamecontroller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c index f484e6c4f..cf5eaf734 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);