Archived
1
0
Fork 0
forked from Mirror/Ryujinx
This repository has been archived on 2024-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
jinx/src/Ryujinx.Ava
SuperSamus 2b5abac809
sdl: set SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS to 0 (#5433)
Nintendo controllers notoriously have the A/B and X/Y buttons swapped, compared to the standard.
In order to combat this, when setting the default controller layout, Ryujinx checks whether the controller name contains "Nintendo", and swaps the mapping accordingly.
However, the reason the mapping is inverted in the first place is because SDL has `SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS` set to 1 by default. By setting it to 0, the mapping will be based on the buttons' position instead.
So, by doing it (and removing the `isNintendoStyle` variable), we get the following advantages:
- The mapping will be the same on all controllers, removing the need to adjust custom mappings depending on what controller is used
- Users who already set `SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS` to 0 globally for other games/applications (like me) won't have a wrong default mapping
- Checking whether the controller name contains "Nintendo" is ugly

Disadvantages:
- Breaks the controller configuration for existing users who are using a Nintendo controller
2023-07-06 17:11:26 +02:00
..
Assets Swkbd Applet Fixes (#5236) 2023-06-09 12:11:53 +02:00
Common ava: Fix crash when extracting sections from NCA with no data section (#5002) 2023-05-17 19:27:49 +00:00
Input ava: Fix Input Touch (#5204) 2023-06-03 16:03:42 +01:00
Modules/Updater Exclude macOS from checking for changed files (#5270) 2023-06-09 15:35:24 +02:00
UI sdl: set SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS to 0 (#5433) 2023-07-06 17:11:26 +02:00
App.axaml Move solution and projects to src 2023-04-27 23:51:14 +02:00
App.axaml.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
AppHost.cs [Ryujinx.Ui.Common] Address dotnet-format issues (#5392) 2023-06-29 02:39:22 +02:00
Program.cs Add hide-cursor command line argument & always hide cursor option (#4613) 2023-05-02 03:29:47 +02:00
Ryujinx.Ava.csproj Linux: Automatically increase vm.max_map_count if it's too low (#4702) 2023-05-30 01:48:37 +02:00
Ryujinx.ico Move solution and projects to src 2023-04-27 23:51:14 +02:00