Commit 390b2cf0d3e7ccff6d648c749e1f7618a8487b39

Sam Lantinga 2020-12-22T20:53:27

Enable PS5 enhanced functionality for testgamecontroller

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c
index 0c0d3dc..4f49202 100644
--- a/test/testgamecontroller.c
+++ b/test/testgamecontroller.c
@@ -433,6 +433,7 @@ main(int argc, char *argv[])
 
     SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
     SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1");
+    SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
     SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
 
     /* Enable standard application logging */