I guess I'm wondering if there's some database somewhere of arcade games and what their joystick/button layout was. That will help me to know how many buttons I should plan for on each of the cabinets.
In Quick Menu > Overrides, you can save custom configurations (overrides) for cores and games, whereas in Quick Menu > Controls you can save custom controller mappings (remap files) for cores and games.
@mitu OK I figured it out. Fist i got into Stargate on RetroPie and re-assigned the game controls to different keys using Tab. "Input, this game". F is fire, T is thrust, H is hyperspace, 1 is player1 start, 2 is player2 start, S is smart bomb, I is inviso, R is reverse, arrow up is UP, arrow down is DOWN. This makes my head easier to remember. Then I went back into EmStation, disconnected the USB gamepad and reconfigured the keyboard as main controller. I set key 1 as Start and key 2 as Select. I also set key T as B and key F as A. Down at the bottom of the configure menu I left hotkey blank and when asked, I selected Yes. I also went into RetroArch/Settings/Input/Hotkey Binds and made sure Press Quit Twice is set to OFF. So to exit the game now I press 1 and 2 together and it brings me back to EmStation. And when the Pi is in the cabinet (hooked up to iPac2), I can work through the EmStation using the Stargate control buttons and never need a keyboard or gamepad again.
Is it possible to configure them as such? (with 4 being duplicated?)
It depends if you are going to use any game that uses more than 6 buttons, i would generally recommend going for 8 buttons with no duplicate, and remapping the emulators on a per-game basis as you see fit.
In case i want to seal this arcade box, does raspberry support so many controller inputs? (2 USB-joystick-button controllers, 2 normal USB controllers, 2 light gun controllers and 2 wheel controllers?)
Not sure on the light gun part but I would assume so, I use the ipac (mini) as well with sanwa joysticks and gold leaf buttons from ultimarc. I've used the inexpensive stuff on amazon also but nothing compares to the ultimarc IMO. The only thing with the sanwa's is going from 8way to 4way switching for games like Donkey Kong as the switching is under the panel. I tried using other joysticks that switch at the top and just didn't like them (mag-stik being one of them). I did get the sanwa working with a servo (servo-stik) for auto switching however my control panel did not have room to fit the servo... I used a toggle switch to move the restrictor plate. You can also set the rom bootup to change to the correct setting but I opted for a manual switch.
I use the arcade sticks for mame games, and usb wired xbox360 like controllers for nes/genesis etc. Some nes/genesis games I use the arcade sticks as well, Works great either way. I don't remember if I ever got genesis 4 player games working with arcade sticks and usb controllers together, IIRC I had to use 4 usb controllers was something with the multi-tap in genesis but I only have 1 friend so it's not a problem normally lol.
You will need a powered usb hub as you wont have enough ports for everything.
MDF is what I used for a small 2p bartop, going to do a 4 player pedestal next using MDF again.
I am going to change the button layout for Alien Storm for the Sega Megadrive
I have started the game
Entered the RGUI menu
Go to controls
Set the buttons up accordingly
I click on save core remap file in the controls menu
I have the message "remap file saved successfully"
I resume the game
The buttons work perfectly
I exit the game back to the game selection menu
Restart the ROM
And it works perfectly.
I don't believe this. It has worked. The problem was I was saving using the "save core override" option when I should have been using the "save core remap file" in the controls screen.
Thank you so much for everything Mitu. No doubt I will encounter another problem where you can rescue me again. Thank you and have a nice day my friend.
start with the RetroPie image from retropie.org.uk/download. It's a tested and mostly stock Raspbian image and the best baseline system to start experimenting.
make sure you have an adequate power supply and you don't get any under-voltage warnings.
test if the device is detected by the OS by running a few command line utilities
# see what USB devices are connected with
# see what input devices are detected by the OS and what kind (gamepad/keyboard/mouse/etc.)
test if the device inputs are registered in the system by running a few joystick/gamepad testing programs fromt the command line that capture the button/joypad/d-pad presses and show them on the terminal:
# 1st joystick
# 2nd joystick
# another testing utility
It should always be possible to use the ControlBlock together with any USB controller. You would just need to run the input configuration for each device on EmulationStation. All controller types should be recognised and working afterwards.
Regarding your question about the need for an additional keyboard: What you would need to do is to configure the emulators such that you have full control with your arcade / gamepad controls only. That should be possible.
@mitu Thank, that makes sense. I had looked through that link previously multiple times, but not found anything saying that “input_12_btn” didn’t work. I will post my configs tomorrow, and manually modify the cfg file to see what happens. If I can confirm that the “input_12_btn” is being created instead of right trigger or whatever, I will report it as a bug
@jfrmilner Thanks for the kind praise. My answer about multiplayer games is going to come from the arcade game options, as my build obviously has that emphasis. There is another thread here somewhere that lists all of the 4-player games (4-player MAME lists can also be found online). But I have far far less than a full ROMset loaded on my system--I load games as I learn about them. That said, it is hard to beat a good game of 4-player Gauntlet and Gauntlet 2. Try Xenophobe. Then, there are the fighter games like X-men, or the Simpsons and TMNT. Battletoads has 3 player capability, Rampage is fun. Then there is a handful of sports titles. Stone Ball is super fun! NBA Jam, and a few racing games like Super Sprint.
My build looks like a 4-player cabinet, but remember, many classic arcade games have the CRT oriented vertically, so for those, even though they are not 4-player games, I play them from the vertical sides of the cabinet (players 3 and 4) to get the best, full-screen experience.
If you require 2 players with joystick and up to 8 buttons on each control (equivalent to SNES controller) you could hook up directly to the gpio using mkarcadejoystick module that is in the drivers in Retropie.