From e68884070318d2dd403547a6e3538a7710960858 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Tue, 30 Nov 2021 03:03:32 -0600 Subject: [PATCH] PAD:SDL: Set some hints --- pcsx2/PAD/Linux/SDL/joystick.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcsx2/PAD/Linux/SDL/joystick.cpp b/pcsx2/PAD/Linux/SDL/joystick.cpp index da5678230f..d83ef9f496 100644 --- a/pcsx2/PAD/Linux/SDL/joystick.cpp +++ b/pcsx2/PAD/Linux/SDL/joystick.cpp @@ -34,6 +34,14 @@ void JoystickInfo::EnumerateJoysticks(std::vector>& vjoy { // Tell SDL to catch event even if the windows isn't focussed SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); + // Enable rumble on PS4 controllers (note: breaks DirectInput handling) + SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1"); + // We want buttons to come in as positions, not labels, where possible + // New as of SDL 2.0.12, so use string + SDL_SetHint("SDL_GAMECONTROLLER_USE_BUTTON_LABELS", "0"); + // Super annoying to have a bright blue LED shining in your face all the time + // New as of SDL 2.0.18, so use string + SDL_SetHint("SDL_JOYSTICK_HIDAPI_SWITCH_HOME_LED", "0"); if (SDL_Init(flag) < 0) return;