From 6c25aed419d98582a9bc0578e272f1a766d50bf6 Mon Sep 17 00:00:00 2001 From: Nate River <65733513+neet93@users.noreply.github.com> Date: Sat, 27 Nov 2021 14:01:18 -0500 Subject: [PATCH] added hint for joysticks to stablize sixaxis & dualshock controllers (#5007) --- test/testgamecontroller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c index 28d47bf71..800ce225a 100644 --- a/test/testgamecontroller.c +++ b/test/testgamecontroller.c @@ -530,6 +530,7 @@ main(int argc, char *argv[]) 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"); + SDL_SetHint(SDL_HINT_LINUX_JOYSTICK_DEADZONES, "1"); /* Enable standard application logging */ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);