rpcs3 icon indicating copy to clipboard operation
rpcs3 copied to clipboard

SDL - only 1 controller displayed when using 2 controllers that have same DeviceName

Open Tartifless opened this issue 2 years ago • 5 comments

Quick summary

When using 2 controllers that have the same SDL DeviceName, only 1 controller will be seen by rpcs3, as only the devicename is used as identifier. DeviceIndex (SDL index) should be added after or before the DeviceName to be able to use multiple controllers of same name.

Details

rpcs3 config file screenshot: image

In the rpcs3 gamepad config screen when using SDL handler: image

In the rpcs3 gamepad config screen when using MM handler: image

Attach a log file

RPCS3.log

Attach capture files for visual issues

No response

System configuration

No response

Other details

No response

Tartifless avatar Dec 29 '22 00:12 Tartifless

I think this is also affect my controller. As far as i know, this only affect 1 game so far that cant be use MMJoystick. But strangely enough, my previous RPCS3 (using my old harddrive, just run it without reinstall RPCS3) work. If you need log files please let me know

jokoputera avatar Dec 29 '22 13:12 jokoputera

This is a known behaviour and simply unimplemented

Megamouse avatar Dec 29 '22 14:12 Megamouse

Hi Megamouse, was this answer for me or for jokoputera ?

Tartifless avatar Jan 12 '23 10:01 Tartifless

Hello, Is there any plans to implement this or not yet ? Adding the sdlindex before the joystick name could be used.

Tartifless avatar Jun 09 '23 20:06 Tartifless

I completely forgot about this. Maybe I'll look into it over the weekend

Megamouse avatar Jun 09 '23 21:06 Megamouse

try with #13999

Megamouse avatar Jun 11 '23 12:06 Megamouse

Thanks, will test before tuesday

Tartifless avatar Jun 11 '23 14:06 Tartifless

IGNORE THIS, test on wrong build

Tartifless avatar Jun 12 '23 14:06 Tartifless

If you want to test an open pr you have to download it separately. Follow the instructions in here.

MSuih avatar Jun 12 '23 14:06 MSuih

Ok, back to tests:

  • Configuration of pads: ==> OK image Both pads work independently when set as player 1 and player 2

  • In default.cfg file: All is fine: image

  • It works also in-game: both controllers work fine

Tartifless avatar Jun 12 '23 14:06 Tartifless

Seems to me this can be merged, just played a 2-player game and works fine !

Tartifless avatar Jun 12 '23 14:06 Tartifless

Thanks for testing!

Megamouse avatar Jun 12 '23 15:06 Megamouse

Hi I’m lost on how to access the config file and change the device names

ThunderWahi avatar Jun 17 '23 23:06 ThunderWahi

Hi I’m lost on how to access the config file and change the device names

I am sorry, i do not understand your question ... It's not possible to change the device name, as this is defined by the SDL library.

Tartifless avatar Jun 18 '23 01:06 Tartifless

Then how do you use 2 Xbox controllers, how do you differentiate them so they have different names under the sdl.

ThunderWahi avatar Jun 18 '23 05:06 ThunderWahi

They will have the same name if it's the same controllers but a different index number, the first will have index 1, the second index 2, and so on.

But for xbox controllers you should use xinput, not sdl.

Tartifless avatar Jun 18 '23 08:06 Tartifless

Im probably a bit dumb here, but whats the problem if that doesn't happen for me? 2 identical controllers do not show up as seperate devices under the gamepad tab. I installed RPCS3 via emudeck.

Adamanthul avatar Dec 02 '23 09:12 Adamanthul