Controllers order problem
-
I installed Retropie on a Raspberry PI 3B+ and everything seems to work fine.
I connected the following devices to my Retropie:- a wireless keyboard via USB dongle (model Free Wolf M87);
- a bluetooth gamepad (model Xiaomi Bluetooth Controller);
- a wireless arcade controller via USB dongle (model Data Frog Y3 Arcade Fighter Stick);
My problem is setting the controller order. I read that it is possible to do this through the "Configuration Editor" menu however I can't get what I want.
I would like the NeoGeo emulator to use the Arcade controller as the first player and the Xiaomi controller as the second player.
If I enter the "Configuration Editor", in the basic configuration and therefore in those of the NeoGeo emulator under "Choose joypad order" I can select between 4 values:- 0 (shanwan Twin USB Joystick)
- 1 (shanwan Twin USB Joystick)
- 2 (xiaomi)
- unset
The device called "shanwan Twin USB Joystick" seems to be the Arcade controller, however I don't understand why there are two devices with the same name (I only have one Arcade controller).
Why are there two "shanwan Twin USB Joystick"?Also any order I place I can't get the Arcade controller for the first player. In the best cases I get the bluetooth controller for player one and the arcade one for player 2 with tghis order: 1 0 2 unset.
I have try 0 2 1 unset and 1 2 0 but in this case Xioami controller does not work and arcade controller lost all button map.
-
I installed Retropie on a Raspberry PI 3B+ and everything seems to work fine.
Can you also add more info about your setup, as requested in https://retropie.org.uk/forum/topic/3/read-this-first ?
The device called "shanwan Twin USB Joystick" seems to be the Arcade controller, however I don't understand why there are two devices with the same name (I only have one Arcade controller).
Why are there two "shanwan Twin USB Joystick"?This is what the system (Linux) reports to the configuration script. What's the output of
cat /proc/bus/input/devices
? Sometimes arcade 'zero delay encoders' provide 2P with a single USB connection.Also any order I place I can't get the Arcade controller for the first player. In the best cases I get the bluetooth controller for player one and the arcade one for player 2 with tghis order: 1 0 2 unset.
[...]What if you don't order then at all ? What's the default order ?
-
@array81 Have you tried https://github.com/meleu/RetroPie-joystick-selection
-
@mitu said in Controllers order problem:
I installed Retropie on a Raspberry PI 3B+ and everything seems to work fine.
- Hardware: Raspberry PI 3b+;
- Power Supply used: external multi USB power supply (it doesn't tell me about voltage problems);
- RetroPie Version Used: 4.8.8;
- Built From: first install via "Raspberry Pi Imager" then update via Retropie menu;
- USB Devices connected: Free Wolf M87 dongle (wireless keyboard) Data Frog Y3 Arcade Fighter Stick dogle (wireless controller);
@mitu said in Controllers order problem:
What if you don't order then at all ? What's the default order ?
With default order I get Xiaomi bluetooth controller or keyboard as first player and Arcade controller as second player.
@ByteThis said in Controllers order problem:
@array81 Have you tried https://github.com/meleu/RetroPie-joystick-selection
I had seen it, however from what I understand this script was created before RetroPie added its controller sorting menu and I wasn't sure if it was still compatible with the latest versions of RetroPie.
I also installed it and tried using it (although the icon didn't appear in the RetroPie menu). Using it however I think I missed something because I think I corrected the configuration file and I had to restore it from a backup copy.
Can this script still be used even on recent versions of RetroPie? -
What's the output of the command
cat /proc/bus/input/devices
? -
@mitu said in Controllers order problem:
What's the output of the command cat /proc/bus/input/devices ?
This is the result:
I: Bus=0003 Vendor=32c2 Product=0018 Version=0110 N: Name="HS6209 2.4G Wireless Receiver" P: Phys=usb-3f980000.usb-1.2/input0 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:32C2:0 018.0001/input/input0 U: Uniq=No.161-0047-5 H: Handlers=sysrq kbd leds event0 B: PROP=0 B: EV=120013 B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe B: MSC=10 B: LED=1f I: Bus=0003 Vendor=32c2 Product=0018 Version=0110 N: Name="HS6209 2.4G Wireless Receiver Keyboard" P: Phys=usb-3f980000.usb-1.2/input1 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:32C2:0 018.0002/input/input1 U: Uniq=No.161-0047-5 H: Handlers=kbd event1 B: PROP=0 B: EV=100013 B: KEY=7 ff800000 454 80b0ffcd 1cfffff febffbff dffffffe B: MSC=10 I: Bus=0003 Vendor=32c2 Product=0018 Version=0110 N: Name="HS6209 2.4G Wireless Receiver Consumer Control" P: Phys=usb-3f980000.usb-1.2/input1 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:32C2:0 018.0002/input/input2 U: Uniq=No.161-0047-5 H: Handlers=kbd event2 B: PROP=0 B: EV=1f B: KEY=3f 303ff 0 0 0 0 483ffff 17aff32d bfd44446 0 0 1 130ff3 8b17c000 677bfa d 9415fed 19ed680 4400 0 10000002 B: REL=1040 B: ABS=1 0 B: MSC=10 I: Bus=0003 Vendor=32c2 Product=0018 Version=0110 N: Name="HS6209 2.4G Wireless Receiver System Control" P: Phys=usb-3f980000.usb-1.2/input1 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:32C2:0 018.0002/input/input3 U: Uniq=No.161-0047-5 H: Handlers=kbd event3 B: PROP=0 B: EV=13 B: KEY=c000 100000 0 0 0 B: MSC=10 I: Bus=0003 Vendor=32c2 Product=0018 Version=0110 N: Name="HS6209 2.4G Wireless Receiver Mouse" P: Phys=usb-3f980000.usb-1.2/input2 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.2/0003:32C2:0 018.0003/input/input4 U: Uniq=No.161-0047-5 H: Handlers=mouse0 event4 B: PROP=0 B: EV=17 B: KEY=ff0000 0 0 0 0 0 0 0 0 B: REL=1943 B: MSC=10 I: Bus=0003 Vendor=32c2 Product=0018 Version=0110 N: Name="HS6209 2.4G Wireless Receiver" P: Phys=usb-3f980000.usb-1.2/input2 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.2/0003:32C2:0 018.0003/input/input5 U: Uniq=No.161-0047-5 H: Handlers=event5 B: PROP=0 B: EV=9 B: ABS=100 0 I: Bus=0003 Vendor=0810 Product=0001 Version=0111 N: Name="shanwan Twin USB Joystick" P: Phys=usb-3f980000.usb-1.3/input0 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:0810:0 001.0004/input/input6 U: Uniq= H: Handlers=event6 js0 B: PROP=0 B: EV=1b B: KEY=fff 0 0 0 0 0 0 0 0 0 B: ABS=30027 B: MSC=10 I: Bus=0003 Vendor=0810 Product=0001 Version=0111 N: Name="shanwan Twin USB Joystick" P: Phys=usb-3f980000.usb-1.3/input0 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:0810:0 001.0004/input/input7 U: Uniq= H: Handlers=event7 js1 B: PROP=0 B: EV=1b B: KEY=fff 0 0 0 0 0 0 0 0 0 B: ABS=30027 B: MSC=10 I: Bus=0005 Vendor=2717 Product=3144 Version=0129 N: Name="小米蓝牙手柄" P: Phys=b8:27:eb:33:0e:ef S: Sysfs=/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11/0005:271 7:3144.0005/input/input8 U: Uniq=ac:fd:93:f0:11:72 H: Handlers=kbd event8 js2 B: PROP=0 B: EV=10001b B: KEY=7fff0000 0 0 0 1000 40000000 1680 0 0 0 B: ABS=3047f B: MSC=10
-
@array81 said in Controllers order problem:
This is the result:
OK, so the system detects indeed 3 gamepads - the first 2 are from the shanwan Twin USB Joystick (twin - 2 joysticks) and the last one is the Xiaomi Bluetooth Controller(小米蓝牙手柄).
Despite exposing 2 gamepads, the shanwan has probably just one player wired. I don't see though how the default order you've mentioned puts the 3rd controller (js2
) first, unless you have some re-ordering done already. Are you sure you haven't configured the ordering of joysticks for all libretro cores ?
You can re-order your joysticks also during gameplay, by bringing up the RetroArch menu and going into the Controllers menu, then - for each Port (Player) - you can choose which devices goes to which Port. Note that once you set a different P1 gamepad, you'll lose control of the menu with the previous gamepad, but the keyboard should still work to control the menu and save the remap. -
@mitu said in Controllers order problem:
I don't see though how the default order you've mentioned puts the 3rd controller (
js2
) first, unless you have some re-ordering done already. Are you sure you haven't configured the ordering of joysticks for all libretro cores ?This is my config on "all libreto":
And this is my config for neogeo:
NOTE: the Xioami controller on the menu appears as a series of squares I think it is due to the fact that they are Chinese characters.
With this configuration if I turn on only the arcade controller it works on RetroPie but it doesn't work on games (the key mapping seems completely wrong and I can't do anything, not even enter the RetroArch menu), if instead I turn on both the Xioami controller and The Arcade one both work on RetroPie and also games but the Xioami controller as Player 1 and the Arcade controller as Player 2.
-
If the contoller works in RetroPie but doesn't in game, then I think the arcade board has incorrectly wired P2 to the controls and P1, which is port controlling the RetroArch menu and the emulator start, is not wired.
Try using the keyboard (F1) to open and navigate the RetroArch menu and re-order the ports on the controller so that P2 becomes P1. In the quick menu that opens up when you press F1, go to Controls, then go to Port 1 and change the device to the 'other' shanwan twin... device. See if you can control the menu with the arcade board now and if you can start the game. If that works, save a remap and see if it's permanent by restarting RetroArch.
-
@mitu said in Controllers order problem:
Try using the keyboard (F1)
If I try to use F1 from a keyboard on the game I cannot see any RetroArch menu.
-
@array81 said in Controllers order problem:
If I try to use F1 from a keyboard on the game I cannot see any RetroArch menu.
That's strange, did you configure the keyboard in EmulationStation with a hotkey enable key ? Is Escape working for exiting games from the keyboard ?
-
@mitu said in Controllers order problem:
That's strange, did you configure the keyboard in EmulationStation with a hotkey enable key ? Is Escape working for exiting games from the keyboard ?
If I remember correctly I set ENTER as the hotkey, in fact to exit from a game I need use Enter+Escape.
-
If you have Enter as
hotkey_enable
for the keyboard, then pressing Enter + F1 should open the menu with the keyboard.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.