RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Configuring DGen Controls: How To Instructions

    Scheduled Pinned Locked Moved Ideas and Development
    dgen controlsgenesis controlcontrol config
    1 Posts 1 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Used2BeRXU
      Used2BeRX
      last edited by Used2BeRX

      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.

      1. 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).

      2. Search for "# Joystick/joypad definitions for pad 1"

      3. 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-max

      TO:

      joy_pad1_up = joystick0-hat0-up
      joy_pad1_down = joystick0-hat0-down
      joy_pad1_left = joystick0-hat0-left
      joy_pad1_right = joystick0-hat0-right

      1. 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-button7

      TO:

      joy_pad1_mode = joystick0-button8
      joy_pad1_start = joystick0-button9

      1. And finally, we will set the controls up to exit the game when you press Start+Select.

      Search for "joy_quit"

      1. 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).

      1. 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-instructions

      mame4all 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-retropie

      PROJECTS:
      Making Pre-Made gamelist.xml With Xtras Media Collection: https://retropie.org.uk/forum/topic/10406/making-premade-gamelist-xml-with-xtra-media-collections/26

      Upgrading 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

      1 Reply Last reply Reply Quote 1
      • First post
        Last post

      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.