Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL: Fix button presses #13338

Merged
merged 1 commit into from Feb 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion rpcs3/Input/sdl_pad_handler.cpp
Expand Up @@ -783,7 +783,9 @@ std::unordered_map<u64, u16> 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)
Expand Down