Select button exits emulator in NES & SNES
-
Hi, long time Retropie user, but new forumite. I've been using Retropie occasionally since 3.8.2, but finally got my arcade cabinet put together and now delving into the meat of RetroPie. All the issues I've run into, I've pretty much solved by reading through the Github files and searching this forum. So thank you everyone that contributes.
So, now that a proper introduction has been done, here's my question that I can't seem to figure out. I have an Xin-Mo arcade controller (6 buttons, joystick, and a one player and select button). I've got the Input configured fine in ES, and when I push the Select button, it takes me to the correct menu. Everything works great in MAME emulator and when I push the Select button there, it gives me the option to Continue or Quit. The issue is when I'm running the NES or SNES emulators. Certain games require the use of the Select button, but every time I press it, it immediately exits the emulator. Is there way to fix this? Do I need to do this in a Retroarch configuration? Here is the required info:
Pi Model or other hardware: Pi 2 B+
Power Supply used: 5V 2.0A
RetroPie Version Used : 4.1
Built From: Pre made SD Image on RetroPie website, updated from 3.8.2 to 4.1
USB Devices connected: Xin-Mo, keyboard, WIFI dongle
Controller used: Xin-Mo
Error messages received: none
Emulator: NES, SNES -
Ok, it looks like maybe I might have answered my question on my own. I guess I didn't look hard enough after all. On the RetroArch config page, it looks like I have a choice of either editing the retroarch config or create a Hardcoded config for both the NES and SNES. With the first choice, looking at the example on the RetroArch config page on the github page, it shows that both the Start button and input_exit_emulator_btn are both assigned the same #. So, in sense, in this configuration, wouldn't the user have the same issue I am having that when the Start button was pressed, this would exit the emulator?
If that is correct, then essentially I would need to create a Hardcoded config for the 2 system. Just to make sure I understand correctly, I need to actually create the directory /opt/retropie/configs/SYSTEMNAME/retroarch.cfg and then add the line input_remapping_directory = /opt/retropie/configs/SYSTEMNAME/ to the global retroarch config file at /opt/retropie/configs/all/retroarch.cfg?
One last question, when I'm in ES and hit F4 to go the command line, if I type jstest /dev/input/js0 (or js1, etc), it doesn't work. I always get "Command Not Found". Is there a reason this doesn't work? I get the same thing if I try to SSH to the pi using Putty.
-
@faxanadu_guy Is the controller connected? If not you will get this error. Tyle
lsusb
into the terminal. Is the xin mo listed? -
Yes, it has always been connected when I run it and lsusb shows the Xin-Mo, well it lists it as THT Arcade..... But if I type the jstest command, it never works.
-
Just tried it again and I get the following message:
-bash: jstest: command not found.When I run lsusb I'm pretty sure this first line is my Xin-Mo controller. It says:
Bus 001 Device 007: ID 16c0:05e1 Van Ooijen Technische Informatica Free shared USB VID/PID pair for CDC devices. -
Ok, after some investigation, here are some afterthoughts. If I go in and remap the controller in Emulation Station, and switch my Start and Select buttons, it seems to be fine (other then not being mapped to the button I want them to be on the cabinet). With this set up, if I go into, say the NES emulator, the Start and Select work fine in the game and pressing both together allows me to exit the emulator. Now if I switch them back, Start works fine, Select immediately exits the emulator. If I map them to 2 other random buttons in my 6 button layout, everything works fine in the emulator, but pushing them together will not exit the emulator.
One thing that I did notice, is looking at the layout instructions that came with the Xin-Mo, it shows for player 1 that the Start button should be #9, and the Select should be #10. When I map the controller in ES, the Start button shows up as 9, but the Select shows up as 8. So, it's possible I have the Select button wired to the wrong input on the Xin-Mo board. This maybe a stupid question, but would it make that much of a difference? I mean, I'm telling it to map a control to a certain button.
I'm going to pull the control apart tonight and double check my wiring.
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.