RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    GPIO Buttons Using dtoverlay

    Scheduled Pinned Locked Moved Help and Support
    gamepadconfigdtoverlay
    2 Posts 2 Posters 698 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.
    • P
      PCgee
      last edited by

      Hi everyone,
      I've recently built a ZeroW based NES emulator but have been running into issues getting it working in games. I have been trying to use the "dtoverlay=gpio-key" option in my config.txt to map the gpio pins where I have buttons to key presses and this has worked great. In EmulationStation menus I can navigate easily however when I launch the games the inputs don't work at all. I find it odd that it works perfectly until I launch a game. Does anybody know of any fixes to this or at least what the issue may be?

      I will note I have tried connecting a regular keyboard over bluetooth and the keybinds work fine, and I can play it perfectly with the bluetooth keyboard with the keys I mapped but the physical buttons on the PI don't work.

      I have tried utilizing retrogame from adafruit however I have ran into issues there as the circuit I designed uses active-high buttons and that library is only active-low. I tried modifying the code to get it to work by changing the pull-up resistors to pull-downs and such but had no luck.

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Please add more info about your setup, as detailed in https://retropie.org.uk/forum/topic/3/read-this-first.

        For the input part - can you get a verbose log from the emulator and see what it reports ?

        1 Reply Last reply Reply Quote 0
        • 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.