Configuring DGen Controls: How To Instructions
-
I haven't done much with Genesis yet, but it's been my experience that with a Pi Zero the more options you have for a system the better, so even though DGen isn't part of libretro, I wanted to configure the controls for it. There wasn't much info online for this, but through some trial and error I was able to figure it out.
These instructions will allow you to map the controls to an PS3/4 style controller. It also allows you to map the DPad instead of the left analog stick and set up "Start+Select" to exit the game/emu.
Using jstest you could figure out what alternate values you would need to put in if you have a different style controller. My jstest values worked perfect with DGen.
-
First, you need to get to the configuration file. It is located in /opt/retropie/configs/megadrive/ and it is named simply dgenrc (with no extension).
-
Search for "# Joystick/joypad definitions for pad 1"
-
For the D-Pad controls change the following:
joy_pad1_up = joystick0-axis1-min
joy_pad1_down = joystick0-axis1-max
joy_pad1_left = joystick0-axis0-min
joy_pad1_right = joystick0-axis0-maxTO:
joy_pad1_up = joystick0-hat0-up
joy_pad1_down = joystick0-hat0-down
joy_pad1_left = joystick0-hat0-left
joy_pad1_right = joystick0-hat0-right- Chances are the values for "Mode" and "Start" are incorrect and will require you to press trigger buttons. For the XBox 360 style controller this was fixed by changing the following lines:
joy_pad1_mode = joystick0-button6
joy_pad1_start = joystick0-button7TO:
joy_pad1_mode = joystick0-button8
joy_pad1_start = joystick0-button9- And finally, we will set the controls up to exit the game when you press Start+Select.
Search for "joy_quit"
- Now, change the following lines to add the 3rd "binding" command:
key_quit = escape
joy_quit = ''TO:
key_quit = escape
joy_quit = ''
bind_'j0-b8 j0-b9' = joy_quit(Where j0-b8 = Select Button and j0-b9 = Start Button)
Now save the file on your Pi and start the game (no need to restart emulation station).
- If you would like alternate values for any of the other buttons you can play around with them and save it and immediately re-start the game and see if you like those values better.
Hope that is of some help to somebody else!
OTHER NON-LIBRETRO CORE CONFIGURATION INSTRUCTIONS:
Osmose for SEGA Master System/Game Gear: https://retropie.org.uk/forum/topic/10733/configuring-osmose-controls-how-to-instructionsmame4all for Arcades: https://retropie.org.uk/forum/forum/topic/10771/configuring-mame4all-controls-how-to-instructions
OTHER GUIDES:
Making Headers on Atari 5200 Roms to Autorun in Retropie: https://retropie.org.uk/forum/topic/10337/making-headers-on-your-atari-5200-game-images-to-auto-run-in-retropiePROJECTS:
Making Pre-Made gamelist.xml With Xtras Media Collection: https://retropie.org.uk/forum/topic/10406/making-premade-gamelist-xml-with-xtra-media-collections/26Upgrading the Atari 800/5200 Emulator (thanks to future.child and jfroco): https://retropie.org.uk/forum/topic/847/atari-5200-new-version-of-atari800-beta-two-triggers-moon-patrol-hat-start-and-exit-buttons/126
Atari 5200 Controller Configuration Project: https://retropie.org.uk/forum/topic/10764/atari-5200-controller-configuration-project
-
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.