From d69e345bc07fcb13389498cf56bc83bae8195272 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 3 Feb 2023 18:03:19 +0100 Subject: [PATCH] SDL: Fix button presses SDL currently always returns 1 if a button is pressed --- rpcs3/Input/sdl_pad_handler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Input/sdl_pad_handler.cpp b/rpcs3/Input/sdl_pad_handler.cpp index 8716066d16..d7ca6170fe 100644 --- a/rpcs3/Input/sdl_pad_handler.cpp +++ b/rpcs3/Input/sdl_pad_handler.cpp @@ -783,7 +783,9 @@ std::unordered_map sdl_pad_handler::get_button_values(const std::share { const u8 value = SDL_GameControllerGetButton(dev->sdl.game_controller, button_id); const SDLKeyCodes key_code = get_button_code(button_id); - values[key_code] = value; + + // TODO: SDL does not support DS3 button intensity in the current version + values[key_code] = value ? 255 : 0; } for (SDL_GameControllerAxis axis_id : dev->sdl.axis_ids)