[Bug] Controller settings are not saved & [Feature Request] xinput implementation #577
Closed
opened 2025-01-25 00:42:30 +00:00 by williansti
·
51 comments
No Branch/Tag Specified
No results found.
Canary-1.2.447
Canary-1.2.446
1.2.86
Canary-1.2.445
Canary-1.2.444
Canary-1.2.443
Canary-1.2.442
Canary-1.2.441
Canary-1.2.440
Canary-1.2.439
Canary-1.2.438
Canary-1.2.437
Canary-1.2.436
Canary-1.2.435
Canary-1.2.434
Canary-1.2.433
Canary-1.2.432
Canary-1.2.431
Canary-1.2.430
Canary-1.2.429
Canary-1.2.428
Canary-1.2.427
Canary-1.2.426
Canary-1.2.425
Canary-1.2.424
Canary-1.2.423
Canary-1.2.422
Canary-1.2.421
Canary-1.2.420
Canary-1.2.419
Canary-1.2.418
Canary-1.2.417
Canary-1.2.416
Canary-1.2.415
Canary-1.2.414
Canary-1.2.413
Canary-1.2.412
Canary-1.2.411
Canary-1.2.410
Canary-1.2.409
Canary-1.2.408
Canary-1.2.407
Canary-1.2.406
Canary-1.2.405
Canary-1.2.404
Canary-1.2.403
Canary-1.2.402
Canary-1.2.401
Canary-1.2.400
Canary-1.2.399
Canary-1.2.398
Canary-1.2.397
Canary-1.2.396
1.2.82
Canary-1.2.395
Canary-1.2.394
Canary-1.2.393
Canary-1.2.392
Canary-1.2.391
Canary-1.2.390
Canary-1.2.389
Canary-1.2.388
Canary-1.2.387
Canary-1.2.386
Canary-1.2.385
Canary-1.2.384
Canary-1.2.383
Canary-1.2.382
Canary-1.2.381
Canary-1.2.380
Canary-1.2.379
Canary-1.2.378
Canary-1.2.377
Canary-1.2.376
Canary-1.2.375
Canary-1.2.374
Canary-1.2.373
Canary-1.2.372
Canary-1.2.371
Canary-1.2.370
Canary-1.2.369
Canary-1.2.368
Canary-1.2.367
Canary-1.2.366
Canary-1.2.365
Canary-1.2.364
Canary-1.2.363
Canary-1.2.362
Canary-1.2.361
Canary-1.2.360
Canary-1.2.359
Canary-1.2.358
Canary-1.2.357
Canary-1.2.356
Canary-1.2.355
Canary-1.2.354
Canary-1.2.353
Canary-1.2.352
Canary-1.2.351
Canary-1.2.350
Canary-1.2.349
Canary-1.2.348
Canary-1.2.347
Canary-1.2.346
Canary-1.2.345
Canary-1.2.344
Canary-1.2.343
Canary-1.2.342
Canary-1.2.341
Canary-1.2.340
Canary-1.2.339
Canary-1.2.338
Canary-1.2.337
Canary-1.2.336
Canary-1.2.335
Canary-1.2.334
Canary-1.2.333
Canary-1.2.332
Canary-1.2.331
Canary-1.2.330
Canary-1.2.329
Canary-1.2.328
Canary-1.2.327
Canary-1.2.326
Canary-1.2.325
Canary-1.2.324
Canary-1.2.323
Canary-1.2.322
Canary-1.2.321
Canary-1.2.320
Canary-1.2.319
Canary-1.2.318
Canary-1.2.317
Canary-1.2.316
Canary-1.2.315
Canary-1.2.314
Canary-1.2.313
Canary-1.2.312
Canary-1.2.311
Canary-1.2.310
Canary-1.2.309
Canary-1.2.308
Canary-1.2.307
Canary-1.2.306
Canary-1.2.305
Canary-1.2.304
Canary-1.2.303
Canary-1.2.302
Canary-1.2.301
Canary-1.2.300
Canary-1.2.299
Canary-1.2.297
Canary-1.2.296
Canary-1.2.295
Canary-1.2.294
Canary-1.2.293
Canary-1.2.292
Canary-1.2.291
Canary-1.2.290
Canary-1.2.289
Canary-1.2.288
Canary-1.2.287
Canary-1.2.286
Canary-1.2.285
1.2.81
Canary-1.2.284
Canary-1.2.283
Canary-1.2.282
Canary-1.2.281
Canary-1.2.280
Canary-1.2.279
Canary-1.2.278
Canary-1.2.277
Canary-1.2.276
Canary-1.2.275
Canary-1.2.274
Canary-1.2.273
Canary-1.2.272
Canary-1.2.271
Canary-1.2.270
Canary-1.2.269
Canary-1.2.268
1.2.80
Canary-1.2.267
Canary-1.2.266
Canary-1.2.265
Canary-1.2.264
Canary-1.2.263
Canary-1.2.262
Canary-1.2.261
Canary-1.2.260
Canary-1.2.259
Canary-1.2.258
Canary-1.2.257
Canary-1.2.256
Canary-1.2.255
Canary-1.2.254
Canary-1.2.253
Canary-1.2.252
Canary-1.2.251
Canary-1.2.250
Canary-1.2.249
Canary-1.2.248
Canary-1.2.247
Canary-1.2.246
Canary-1.2.245
Canary-1.2.244
Canary-1.2.243
Canary-1.2.242
Canary-1.2.241
Canary-1.2.240
Canary-1.2.239
Canary-1.2.238
Canary-1.2.237
Canary-1.2.236
Canary-1.2.235
Canary-1.2.234
Canary-1.2.233
Canary-1.2.232
Canary-1.2.231
Canary-1.2.230
Canary-1.2.229
Canary-1.2.228
Canary-1.2.227
Canary-1.2.226
Canary-1.2.225
Canary-1.2.224
Canary-1.2.223
Canary-1.2.222
Canary-1.2.221
Canary-1.2.220
Canary-1.2.219
Canary-1.2.218
Canary-1.2.217
Canary-1.2.216
Canary-1.2.215
Canary-1.2.214
Canary-1.2.213
Canary-1.2.212
Canary-1.2.211
Canary-1.2.210
Canary-1.2.209
Canary-1.2.208
Canary-1.2.207
Canary-1.2.206
Canary-1.2.205
Canary-1.2.204
Canary-1.2.203
Canary-1.2.202
Canary-1.2.201
Canary-1.2.200
Canary-1.2.199
Canary-1.2.198
Canary-1.2.197
Canary-1.2.196
Canary-1.2.195
Canary-1.2.194
Canary-1.2.193
Canary-1.2.192
Canary-1.2.191
Canary-1.2.190
Canary-1.2.189
Canary-1.2.188
Canary-1.2.187
Canary-1.2.186
Canary-1.2.185
Canary-1.2.184
Canary-1.2.183
Canary-1.2.182
Canary-1.2.180
Canary-1.2.179
Canary-1.2.178
Canary-1.2.177
Canary-1.2.176
Canary-1.2.175
Canary-1.2.174
Canary-1.2.173
Canary-1.2.172
Canary-1.2.171
Canary-1.2.170
Canary-1.2.169
Canary-1.2.168
Canary-1.2.167
Canary-1.2.166
Canary-1.2.165
Canary-1.2.164
Canary-1.2.163
Canary-1.2.162
Canary-1.2.161
Canary-1.2.160
Canary-1.2.159
Canary-1.2.158
Canary-1.2.157
Canary-1.2.156
Canary-1.2.155
Canary-1.2.146
Canary-1.2.145
Canary-1.2.144
Canary-1.2.143
Canary-1.2.142
Canary-1.2.141
Canary-1.2.140
Canary-1.2.139
Canary-1.2.138
Canary-1.2.137
Canary-1.2.136
Canary-1.2.135
Canary-1.2.134
Canary-1.2.133
Canary-1.2.132
Canary-1.2.131
Canary-1.2.130
Canary-1.2.129
Canary-1.2.128
Canary-1.2.127
Canary-1.2.126
Canary-1.2.125
Canary-1.2.124
Canary-1.2.123
Canary-1.2.122
Canary-1.2.121
Canary-1.2.120
Canary-1.2.119
Canary-1.2.118
Canary-1.2.117
Canary-1.2.116
Canary-1.2.115
Canary-1.2.114
Canary-1.2.113
Canary-1.2.112
Canary-1.2.111
Canary-1.2.110
Canary-1.2.109
Canary-1.2.108
Canary-1.2.107
Canary-1.2.106
Canary-1.2.105
Canary-1.2.104
Canary-1.2.103
Canary-1.2.102
Canary-1.2.101
Canary-1.2.100
Canary-1.2.99
Canary-1.2.98
Canary-1.2.97
1.2.79
1.2.78
Canary-1.2.96
Canary-1.2.95
Canary-1.2.94
Canary-1.2.93
Canary-1.2.92
Canary-1.2.91
Canary-1.2.90
Canary-1.2.89
Canary-1.2.88
Canary-1.2.87
Canary-1.2.86
Canary-1.2.85
Canary-1.2.84
Canary-1.2.83
Canary-1.2.82
Canary-1.2.81
Canary-1.2.80
Canary-1.2.79
Canary-1.2.78
Canary-1.2.77
Canary-1.2.76
Canary-1.2.75
Canary-1.2.74
Canary-1.2.73
Canary-1.2.72
Canary-1.2.71
Canary-1.2.70
Canary-1.2.69
Canary-1.2.68
Canary-1.2.67
Canary-1.2.66
Canary-1.2.65
Canary-1.2.64
Canary-1.2.63
Canary-1.2.62
Canary-1.2.61
Canary-1.2.59
Canary-1.2.58
Canary-1.2.57
Canary-1.2.56
Canary-1.2.55
Canary-1.2.54
Canary-1.2.53
Canary-1.2.52
Canary-1.2.51
Canary-1.2.50
Canary-1.2.49
Canary-1.2.48
Canary-1.2.47
1.2.76
Canary-1.2.46
1.2.75
1.2.74
1.2.73
Canary-1.2.45
Canary-1.2.44
Canary-1.2.43
Canary-1.2.42
Canary-1.2.41
Canary-1.2.40
Canary-1.2.38
Canary-1.2.37
Canary-1.2.36
Canary-1.2.35
Canary-1.2.34
Canary-1.2.33
Canary-1.2.32
Canary-1.2.31
Canary-1.2.30
Canary-1.2.29
Canary-1.2.28
Canary-1.2.27
Canary-1.2.26
Canary-1.2.25
Canary-1.2.24
Canary-1.2.23
Canary-1.2.22
Canary-1.2.21
Canary-1.2.20
Canary-1.2.19
Canary-1.2.18
Canary-1.2.17
Canary-1.2.16
Canary-1.2.15
Canary-1.2.14
Canary-1.2.13
Canary-1.2.12
Canary-1.2.11
Canary-1.2.10
Canary-1.2.9
Canary-1.2.8
Canary-1.2.7
Canary-1.2.5
Canary-1.2.4
Canary-1.2.3
Canary-1.2.2
1.2.72
1.2.71
1.2.70
1.2.69
1.2.68
1.2.67
1.2.65
1.2.64
1.2.59
1.2.57
1.2.56
1.2.50
1.2.49
1.2.45
1.2.44
1.2.43
1.2.42
1.2.41
1.2.40
1.2.39
1.2.38
1.2.37
1.2.36
1.2.35
1.2.34
1.2.33
1.2.32
1.2.31
1.2.30
1.2.29
1.2.28
1.2.26
1.2.25
1.2.24
1.2.22
1.2.21
1.2.20
1.2.19
1.2.18
Labels
Clear labels
audio
Affects Audio playback during emulation
blocked on external progress
This cannot move forward without work on an external project or service.
bug
Something isn't working
cpu
An issue with ARMeilleure, the JIT, or Hypervisor
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good first issues to work on for new contributors
gpu
Affects GPU emulation
graphics-backend:metal
Affects the Metal Graphics backend
graphics-backend:opengl
Affects the OpenGL Graphics backend
graphics-backend:vulkan
Affects the Vulkan Graphics backend
gui
Affects the Avalonia UI or translations.
help wanted
Extra attention is needed
horizon
Affects the Horizon OS HLE components.
infra
Updates to dependencies
invalid
This doesn't seem right
kernel
Affects the kernel HLE components.
ldn
Affects the LDN functionality
linux
Linux only issue
macOS
macOS only issue
not planned but open to a PR
I do not intend on working on this myself, but I would not be opposed to an implementation.
question
Further information is requested
windows
Windows only issue
wontfix
This will not be worked on
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: MeloNX/Ryujinx-ryubing#577
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
In my case I use original Xbox Series X controls, but every time I open the emulator, the input device is disabled. even though I leave everything right with player 1 using xinput 0 and player 2 using xinput 1, even creating a profile for each control, applying the settings and using them correctly, When I return to the emulator I have to do everything again, because nothing is saved. In short, the settings only work during use, they are not saved..
Smaller details
They could improve compatibility with xinput, implementing functionality like reicast, xenia, xemu or dolphin.
reicast already immediately detects any xinput control when triggered and sets each player to an xinput.
xenia and xemu detect xinput controls almost like a native console, no adjustments are required.
Dolphin, after all the configuration and usage indication for xinput 0: player 1, xinput 1: player 2, xinput 2: player 3 and xinput 3: player 4.
By doing all this and saving a profile for each player, the emulator does not forget the configuration and resumes correctly after each use.
Nature of request
Improve compatibility, efficiency and management of xinput controls in the emulator, so that the emulator "remembers" the settings.
Why would this feature be useful?
It would be useful to solve this annoying problem of every time you open the emulator, having to reconfigure all the controls again, for me and many others who use 4 controls, it is terribly sad, redoing everything every time you want to play.
SDL is used to avoid controller-specific code. Xinput is not going to be added, at least not officially.
This is not going to be worked on.
I understand, this may not even be a priority, I also understand that there is much more useful work than this, if there was a collaborator who could implement at least the two options, as in pcsx2 among others, it would be interesting, options are always welcome, think carefully perhaps in the future.
havent you press apply when you change the input device?
Yes, I pressed apply, I've tried creating the profiles too, it doesn't work, every time I turn off and on the computer and the controls, everything has to be redone, SDL is complicated, I know there are settings in SDL that save in other emulators, even old ones, like yabasunshiro, but the ideal would be to have an option to detect xinput.
are you 100% sure? I just checked on my machine and the settings and my controller input is still saved
I will give examples of the problems that occur. If you only use 1 controller (I use Xbox series X/S), the setting is kept for xinput 0, as long as you don't open the emulator with the controller turned off, otherwise the input device will be disabled.
If you use 2 or 4 controls, the configuration gets mixed up, player 1 has xinput 1 and no longer 0, player 2 also has xinput 1.
The entire configuration is lost, even if you set it correctly as I mentioned.
Player 1: xinput 0
Player 2: xinput 1
Player 3: xinput 2
Player 4: xinput 3
When opening the emulator again if the controls are turned off, everything will be lost, and if you open the emulator with the controls turned on, each player's input device will shuffle or simply use the same xinput.
That's why I say that it would be very good to implement xinput support as an option in this emulator, because just like redream, flycast, duckstation, pcsx2, rpcs3, xenia, xemu, dolphin, etc... the configuration would be maintained, regardless of whether the control is connected with the emulator open or closed, nothing would ever be lost, in addition to the configuration always being set correctly.
wait a second are you connecting your controller by bluetooth or wired?
I connect all 4 by bluetooth, as I mentioned, older emulators such as yabasanshiro which only uses SDL, saves the settings,
unfortunately ryujinx "forgets" the settings and disables the input if it doesn't find the connected controller, and even if I avoid opening the emulator with the controller disconnected, assuming that I only open it when the controllers are connected, it still scrambles the xinput order as I already mentioned... it's very sad, every time I open the emulator, I have to go in there and activate each control in the input and indicate one by one.
Same here. This would be my number 1 issue to fix.
Xinput does not always assign the same playernumber to the same controller, so this is normal, not really an issue.
SDL is more stable
Xbox controllers have that jank even when using their official API?
Yes Xinput is a mess, sdl is the way to go.
I was never going to add Xinput support, so cool I guess
Well, I just suggested such an implementation, because in all other emulators it works without any problem, I have never seen such repulsion for a simple resource, if I had the necessary skill I would do such an implementation, because I believe that more options are always better than just one option, see dolphin, pcsx2, rpcs3, duckstation, xenia, xemu, flycast among others, well let's not discuss it anymore, if xinput is criticized here let's close this topic and depend only on SDL.
Flycast only has sdl, not xinput
If we add multiple input backends, it needs explaining what each one does, when to use it, etc.
And then you'll get countless people who don't read the words written in the UI, or on the wiki, use the wrong backend and wonder why their controller isn't working.
If these other emulators don't have the same issues as Ryujinx does, while also using SDL in that emulator, then it's a problem that can be solved in the Ryujinx SDL code.
Doing this also doesn't require a completely new input backend to be made from the ground up for a small subset of users who use Xbox controllers for their Nintendo Switch games.
Simply adopting a completely foreign HID API for a very small subsection of users who will even get a benefit from it is not a way to solve this problem.
I have xbox series x controller and don't have similar problem.
Are you sure it's not just the settings file or folder that is read-only ?
Well, I had already closed this topic, but I will reopen it due to the continuity of the conversation, I will try to demonstrate with prints exactly what happens, I hope that this will be clearer for everyone.
1 - Doing the basics, we turn on all the Xbox controllers until they are paired with the PC.
2 - We open the emulator and go to settings >> input
3 - We define each controller in its specific player and apply the settings before clicking ok
see the pictures everything is ok, perfectly defined
Now let's see the following, I just closed the emulator and then opened it again and see what happened to the controls
They were simply all disabled, sometimes this happens and sometimes their order gets mixed up, other times 2 or more players have the same xinput
Absolutely nothing has changed in the connection of the controls, they are all active in Windows and paired, working perfectly.
As I mentioned several times, I can open other emulators, and all the controls are perfectly defined, for example, I opened Dolphin and there they are all perfectly configured for a long time.
I understand that implementing xinput may not be necessary, although it would be very useful for those who use controls like mine, but there are certainly problems in SDL that need to be fixed.
As previously stated, absolutely no emulator I use presents this issue of simply "forgetting" the control settings, whether with SDL or xinput, not even citron, sudachi, yuzu and all the others for other consoles, so I kindly ask that you review why SDL in ryujinx does not keep my controls properly configured and enabled.
What is strange is that i do not have this issue with same controllers !
Are you sure the folder or file where Config.json is located is not read-only ?
Because if it does this in sdl, it will also do it with xinput or any other wrapper
I have the same experience. Let me know if I can help debug this issue.
The issue we are facing is more of an annoyance than a blocker. Controllers end up working. But we have to configure input settings each time we play, as the settings don't get saved. The input setup doesn´t persist between runs.
I've also made a profile that does persist, but it gets unassigned each time as well.
I'm running the latest Ryujinx and I've tried with multiple 8bitdo/xbox/ps4 controllers.
Ok, i have just tried with the following controllers:
I am unable to reproduce the issue.
I save configuration, exit ryujinx, launch it again, and settings are still there and controllers still assigned.
But this issue is not at all related to SDL vs Xinput, it's more about ryujinx not saving the configuration for your installation.
Where did you install ryujinx ? Which folder ?
Have you checked that the file Config.json located in the "portable" folder of ryujinx is correctly saved when exiting ryujinx after defining the controls ?
I use the settings inside the "portable" folder, I checked the properties and both the folder and Config.json are not read-only.
Thanks for reporting, they already thought I was crazy lol
Can you try the following:
If there is a difference, it will allow finding the culprit, my guess is that it will be the guid of the controller...
folder where ryujinx is installed = D:\Emuladores\Nintendo Switch\Emulador
folder where Config.json is located = D:\Emuladores\Nintendo Switch\Emulador\portable
portable folder and config.json are not read-only I tried testing with version 1.2.82 and the same problem occurs
I tried deleting config.json and letting the emulator recreate it but the problem still occurs.
I found that after enabling the controls, applying and clicking OK on the settings and closing the emulator, the config.json is modified correctly, but after opening the emulator again it resets the controls settings to disabled.
I just noticed something interesting, I put just 1 of my controllers on the cable, and the settings were saved and kept, even after closing and reopening the emulator
So we conclude that this problem is occurring with Xbox controls connected via Bluetooth, when connected via cable there are no problems.
The controls are identified differently on Bluetooth and the cable and perhaps SDL is not knowing how to deal with this, it is something to be investigated.
Bluetooth controls where the settings are not saved
On-cable controls where problems don't occur and settings are maintained
Config1.json
Config2.json
Config3.json
Ok, so what we can see, between 1 and 2, just by quitting ryujinx, there are already changes in the file.
With your working configuration we get:
Player 1 - 0-9a460003-045e-0000-130b-000013057200
Player 2 - 0-9a460003-045e-0000-130b-000009057200
Player 3 - 0-9a460003-045e-0000-130b-000021057200
Player 4 - 0-9a460003-045e-0000-130b-000020057200
Re-run, change nothing and close: (we just loose Player 4)
Player 1 - 0-9a460003-045e-0000-130b-000013057200
Player 2 - 0-9a460003-045e-0000-130b-000009057200
Player 3 - 0-9a460003-045e-0000-130b-000021057200
After reconfiguration, we get brand new ids:
Player 1 - 0-466a0003-045e-0000-130b-000013057200
Player 2 - 0-466a0003-045e-0000-130b-000009057200
Player 3 - 0-466a0003-045e-0000-130b-000021057200
Player 4 - 0-466a0003-045e-0000-130b-000020057200
@GreemDev : Is it something already seen ? I just tried with 2 controllers of exactly the same type (XBox One S) but did not encounter any such issue.
I don't know what could be causing this with the example above, where the guid of controllers changes upon relaunching the app...
And strangely this only occurs when the controllers are connected via bluetooth, where they are displayed as "Xinput Bluetooth LE compatible input device"
but when connected via usb cable, and they are detected as "Controller (Xbox One for Windows)" no problem occurs.
Are the controller IDs different when used via bluetooth?
The fact that your xbox controller shows as bluetooth LE compatible device is problematic, it should show as Xbox Series controller...
Maybe you should check the driver/firmware of the controller.
They appear as Bluetooth LE compatible device because they are connected via Bluetooth and not through the original wireless adapter for Xbox controls that exists for PC, however, my Bluetooth is of excellent quality and is Intel Bluetooth 5.1 LMP11, which is already embedded on my motherboard, a Gigabyte B660M AORUS PRO AX.
But this doesn't seem to be a problem caused by the way I connect the controls to the PC, since it's a problem exclusive to ryujinx, absolutely all the other emulators I use, none of them present a problem, and believe me, I use them a lot...
PS: the firmware of all controls are up to date, v5.23.5.0
My database and emulators
Even with bluetooth and whatever the bluetooth receiver, they should have their correct name and appear as Xbox controllers, not as Bluetooth LE compatible...
I found these answers on google...
What can happen when connecting an Xbox controller via Bluetooth?
1 - The Xbox Series S controller may be recognized as “XINPUT LE-compatible input device” when connected via Bluetooth to a laptop.
2 - The Xbox Series controller may be registered as an HID-compatible XINPUT device in Windows 11.
3 - The Xbox Series controller connected via Bluetooth may not be detected as an Xbox controller, but only as a generic XInput controller.
Number 3 is my case and applies to me.
but strangely this doesn't affect anything I use, from PC games and other emulators, the only software that isn't keeping the settings really is just ryujinx, that's why I suggested the implementation of xinput as another option, somehow it seems that in bluetooth the controls enter as generic xinput devices, and there's something missing in the ryujinx SDL to work well with this.
Xinput will not fix this, as xinput ids (from 0 to 3) will not be assigned always to the same controller, but at least they won't appear disconnected.
But this should be fixed by ryujinx dev in sdl, it seems the code assigns different guids upon restart of app, which is messy....
This might be the culprit:
0f3c7f920b
Maybe...
it looks like the controller IDs are directly obtained from SDL
The fact that the guid changes upon application restart is very strange and indeed other emulators also use guid (pcsx2, citra forks, yuzu forks....) and do not show this behaviour.
Maybe instead of using guid, just sdl index would be enough...
i really do not want to break everyone's input configs because of, specifically, Xbox controllers users on Bluetooth lol
I understand that with xinput the control in my hand will not always be player 1, it may simply be player 2 on the next restart, but what is certain is that both will connect without requiring any type of configuration, almost automatically.
When I mention options it is because it is common in other projects, for example in pcsx2 I don't even turn on the SDL option... every time an emulator has an option for xinput, I just leave it turned on and there is no need to define any configuration, see how each control already goes to xinput0 or xinput1 by itself.
But I don't want to be more annoying than I already am, I understood that the problem here is some code in SDL X Xinput via bluetooth, since other emulators that I use with SDL do not present a problem, but I am grateful that we finally found the source of the problem.
It's already broken it seems.
@williansti : can you try with older version 1.2.19 if you experience the same:
https://github.com/Ryubing/Ryujinx/releases/download/1.2.19/ryujinx-1.2.19-win_x64.zip
I tested this version and unfortunately the same problem occurred. I also tried deleting the portable folder and letting it recreate the config.json in another location, but it also didn't save the control settings.
I went further and also tested the old ryujinx, ryujinx-1.1.1402-win_x64, and the same thing happens, apparently it's a very old problem, strange that no one has ever reported this.
So basically this issue is very limited to xbox series controller and only when they are in the case you explained hereover (recognized as generic xinput device).
It can be fixable, but for this a dev with sdl2 minimal knowledge is required.
Well, just saw someone on github with similar issue:
Seems indeed like something is broken at controller level also in linux.
What is still puzzling is that this happens only for some people, for others, with same controllers, there is no issue...
And looking at the code, it uses standard sdl2 features, so absolutely no reason within this code for it not to work.
@williansti , just a quick question, do you have Steam running in parallel ? (Even minimised to tray)
I have steam but it is completely closed, and I leave his background disabled
Video reproducing the problem
https://github.com/user-attachments/assets/93f40743-bb20-4706-b9c2-ad7f9c19da38
@williansti I have exactly the same issue. I use two xbox controller (xbox one and xbox series x). I'm also seeing the XInput controller bluetooth compatible in my controllers window. I'm trying to find a solution, but i'm quite stuck. Quick question though, did you ever use xbox accessories to update your controllers firmware ? Because it seems, from what i'm googling, that controllers being recognized as LE XInput bluetooth compatible is something happening with updates of the controllers firmware through that app.
I did try to revet to former firmware but i'm unable to so far.
@ulzior Downgrading the controller firmware is not a solution, considering that this problem does not occur in any other game or emulator, If Microsoft wants Bluetooth to be recognized as a generic Xinput device, what can we do? So be it, the issue is that we only have a problem with Ryujinx and no other application.
Unfortunately, we will have to wait for a developer who is willing to update the SDL of this fork so that this problem can finally be solved.
I have the same problem, my xbox compatible controller is also recognized as "LE XINPUT" when using Bluetooth.😭😭😭😭😭😭

@williansti you fixed it ?
I was able to get the control mappings to switch with XSX controller on the build Ryujinx_1.1.0+d890fff (macOS). I don't know what changed but something definitely got tinkered with. I had to use time machine to get back my old application support folder as well.
I don't see a performance dip either (M1 Air).
Please look into the issue!
that build isnt even from this repo