Skip Assigning an A-Button?
-
OK so I just went to the local gaming store and bought a legit 1st party Atari Joystick. Brought it home, plugged it into my Mayflash adapter. Ran the usual
jtest
ssh command to verify input was being received through the system, and it is. I then went into ES's "Configure Input" setup and I got as far as mapping the stick, but now I can't get the button to map. The problem is because the screen is asking for input for the A-Button. According to this image below, the button is mapped toB
. So I need to some how skip the assignment ofA
on the screen, but I can't. Everything I've tried just doesn't work. I connected a keyboard and tried pressingESC
but that didn't work either. I can't do anything except turn off the machine and try again. Is there a way to skip assigning theA
button? Or even better, I have a Sega controller that mapsB
using the same adapter.. do I even have to map it when a joystick is connected? -
@hansolo77 Maybe F4 on keyboard can exit emulationstation and interrupt the process, but it would be a little drastic...
Sorry for not giving much help with your issue, but could you please satisfy my curiosity?: How is this joystick named on the OS? Does it get the adapter name?
Can you please paste here the output of this big command when your atari 2600 controller is plugged?:
for js in /dev/input/js*; do path=$(udevadm info --name=$js | grep DEVPATH | cut -d= -f2); name=$(</$(dirname sys$path)/name); echo $name; done
I'm asking it because I think you may have some problems if you configure a Mega Drive controller when using this adapter and then plug an Atari 2600 controller in the same adapter. If Raspbian name it as the adapter name, the button mappings will be obtained from the same file...
(sorry if I'm confusing more than clarifying. :) )
-
I've actually gotten around it by not worrying about it lol. I reset my mappings with the Sega controller, then unplugged it and plugged in the Atari one. After that I tried to load some games and they work fine. The only issue I have is due to hardware limitations. Some games require the user to press START or something (flip a switch, etc) on the actual console, and with essentially a D-Pad and 1 button, you don't have that option. So until I come up with something better, I just can't play those particular games. It would be nice if I could somehow set it up so that the extra buttons can all be pressed using the Sega controller plugged into port #2. But's it's really not that big a deal since I do most of my playing with a totally different controller altogether (XBox360 lol).
-
To satisfy your curiosity though:
pi@retropie:~ $ for js in /dev/input/js*; do path=$(udevadm info --name=$js | grep DEVPATH | cut -d= -f2); name=$(</$(dirname sys$path)/name); echo $name; done raphnet.net nes2usb raphnet.net nes2usb Mayflash Ltd Mayflash MD USB Adapter Mayflash Ltd Mayflash MD USB Adapter Xbox 360 Wireless Receiver Xbox 360 Wireless Receiver Xbox 360 Wireless Receiver Xbox 360 Wireless Receiver pi@retropie:~ $
This of course requires me to go back and change the
dev
variable from my other problem to/dev/input/js4
instead of 2. :) -
@hansolo77 Thanks.
You may have a file named
/opt/retropie/configs/all/retroarch-joypads/MayflashLtdMayflashMDUSBAdapter.cfg
or something. AFAIK, RetroArch will get the configs from this file no matter if you have a MegaDrive or an Atari 2600 controller plugged. It can be annoying.When you want to come back to this issue, my suggestion is to hardcode the mappings for atari2600 in the file
/opt/retropie/configs/atari2600/retroarch.cfg
(you may want to have a keyboard plugged in order to solve the issues you mentioned for start button, etc.). You can get the instructions on how to edit it on the wiki: https://github.com/RetroPie/RetroPie-Setup/wiki/RetroArch-Configuration#hardcoded-configurations
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.