rjx-mirror/src
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
..
ARMeilleure Cpu: Implement VCVT (between floating-point and fixed-point) instruction (#5343) 2023-06-28 17:36:30 +02:00
Ryujinx sdl: set SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS to 0 (#5433) 2023-07-06 17:11:26 +02:00
Ryujinx.Audio [Ryujinx.Audio] Address dotnet-format issues (#5362) 2023-07-02 01:27:18 +02:00
Ryujinx.Audio.Backends.OpenAL [Ryujinx.Audio.Backends.OpenAL] Address dotnet-format issues (#5359) 2023-06-25 01:29:40 +02:00
Ryujinx.Audio.Backends.SDL2 [Ryujinx.Audio.Backends.SDL2] Address dotnet-format issues (#5364) 2023-06-25 22:50:59 +02:00
Ryujinx.Audio.Backends.SoundIo [Ryujinx.Audio.Backends.SoundIo] Address dotnet-format issues (#5360) 2023-06-25 02:15:56 +02:00
Ryujinx.Ava sdl: set SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS to 0 (#5433) 2023-07-06 17:11:26 +02:00
Ryujinx.Common [Ryujinx.Common] Address dotnet-format issues (#5358) 2023-06-28 18:41:38 +02:00
Ryujinx.Cpu [Ryujinx.Cpu] Address dotnet-format issues (#5365) 2023-07-01 02:18:52 +00:00
Ryujinx.Graphics.Device [Ryujinx.Graphics.Device] Address dotnet-format issues (#5363) 2023-06-25 23:58:44 +02:00
Ryujinx.Graphics.GAL [Ryujinx.Graphics.GAL] Address dotnet-format issues (#5366) 2023-06-28 20:20:10 +02:00
Ryujinx.Graphics.Gpu Stop identifying shader textures with handle and cbuf, use binding instead (#5266) 2023-07-03 14:29:27 -03:00
Ryujinx.Graphics.Host1x [Ryujinx.Graphics.Host1x] Address dotnet-format issues (#5368) 2023-06-27 16:35:48 +02:00
Ryujinx.Graphics.Nvdec [Ryujinx.Graphics.Nvdec] Address dotnet-format issues (#5369) 2023-06-25 21:44:42 +02:00
Ryujinx.Graphics.Nvdec.FFmpeg [Ryujinx.Graphics.Nvdec.FFmpeg] Address dotnet-format issues (#5370) 2023-06-25 19:03:48 +02:00
Ryujinx.Graphics.Nvdec.Vp9 [Ryujinx.Graphics.Nvdec.Vp9] Address dotnet-format issues (#5371) 2023-06-28 09:26:39 +02:00
Ryujinx.Graphics.OpenGL [Ryujinx.Graphics.OpenGL] Address dotnet-format issues (#5372) 2023-06-28 18:10:55 +02:00
Ryujinx.Graphics.Shader Stop identifying shader textures with handle and cbuf, use binding instead (#5266) 2023-07-03 14:29:27 -03:00
Ryujinx.Graphics.Texture [Ryujinx.Graphics.Texture] Address dotnet-format issues (#5375) 2023-06-28 18:46:18 +02:00
Ryujinx.Graphics.Vic [Ryujinx.Graphics.Vic] Address dotnet-format issues (#5374) 2023-06-25 18:37:09 +02:00
Ryujinx.Graphics.Video [Ryujinx.Graphics.Video] Address dotnet-format issues (#5377) 2023-06-27 16:45:33 +02:00
Ryujinx.Graphics.Vulkan [Ryujinx.Graphics.Vulkan] Address dotnet-format issues (#5378) 2023-07-01 12:31:42 +02:00
Ryujinx.Headless.SDL2 sdl: set SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS to 0 (#5433) 2023-07-06 17:11:26 +02:00
Ryujinx.HLE [Ryujinx.Audio] Address dotnet-format issues (#5362) 2023-07-02 01:27:18 +02:00
Ryujinx.Horizon [Ryujinx.Horizon] Address dotnet-format issues (#5381) 2023-07-01 12:42:10 +02:00
Ryujinx.Horizon.Common [Ryujinx.Horizon.Common] Address dotnet-format issues (#5382) 2023-06-25 13:40:37 +02:00
Ryujinx.Horizon.Generators [Ryujinx.Horizon.Generators] Address dotnet-format issues (#5383) 2023-06-26 07:35:19 +02:00
Ryujinx.Horizon.Kernel.Generators [Ryujinx.Horizon.Kernel.Generators] Address dotnet-format issues (#5376) 2023-06-27 23:27:48 +00:00
Ryujinx.Input [Ryujinx.Input] Address dotnet-format issues (#5384) 2023-06-28 18:23:00 +02:00
Ryujinx.Input.SDL2 [Ryujinx.Input.SDL2] Address dotnet-format issues (#5385) 2023-06-26 01:55:25 +00:00
Ryujinx.Memory [Ryujinx.Memory] Address dotnet-format issues (#5386) 2023-06-28 18:34:00 +02:00
Ryujinx.SDL2.Common sdl: set SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS to 0 (#5433) 2023-07-06 17:11:26 +02:00
Ryujinx.ShaderTools [Ryujinx.ShaderTools] Address dotnet-format issues (#5388) 2023-06-25 21:37:33 +02:00
Ryujinx.Tests [Ryujinx.Tests] Address dotnet-format issues (#5389) 2023-07-01 02:14:34 +00:00
Ryujinx.Tests.Memory Apply new naming rule to all projects except Vp9 (#5407) 2023-06-28 01:18:19 +02:00
Ryujinx.Tests.Unicorn [Ryujinx.Tests.Unicorn] Address dotnet-format issues (#5391) 2023-06-25 18:03:08 +02:00
Ryujinx.Ui.Common [Ryujinx.Ui.Common] Address dotnet-format issues (#5392) 2023-06-29 02:39:22 +02:00
Ryujinx.Ui.LocaleGenerator Indexing at 0 should be used instead of the "Enumerable" extension method "First" (#5354) 2023-07-01 06:29:37 +00:00
Spv.Generator [Spv.Generator] Address dotnet-format issues (#5394) 2023-06-28 18:54:20 +02:00