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

    Mapping controller button to keyboard key for Retroarch ROM

    Scheduled Pinned Locked Moved Help and Support
    lr-fuse
    3 Posts 2 Posters 1.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.
    • A
      astrok
      last edited by

      Hello,

      Is it be possible to map a controller button to a key on the keyboard for a specific ROM? I have managed to get my controllers working as a Kempston joystick in the ZX Spectrum lr-fuse emulator and would like to get the Z key on the keyboard working on any of the controller buttons. If I run up Retroarch using the hotkeys in lr-fuse I can go to options and change it there, it works but this appears to be for everything in lr-fuse.

      The line that appears in /opt/retropie/configs/all/retroarch-core-options.cfg is

      fuse_joypad_b="z"

      If I add this to the specifc ROM rmp file (/opt/retropie/configs/zxpsectrum/fuse/aticatac.rmp) it does not work. I have also tried -

      input_player1_b="z"
      input_player1_b="122"
      input_player1_btn_b="z"
      input_player1_btn_b="122"

      (122=ascii for z)

      Not sure if I am getting the syntax wrong or if it this is actually possible or not?

      Thank in advance for any pointers. Appreciated.

      Raspbery Pi 400
      Official USB-C PSU
      Retropie 4.71 pre-made + updated through menus
      & Raspberry Pi OS (Legacy - Buster) from official website, Retropie manually installed from guide on this site
      Sega Play Controller (USB) and Xbox 360 controller for Windows (wireless with dongle)
      lr-fuse

      S 1 Reply Last reply Reply Quote 0
      • S
        sleve_mcdichael @astrok
        last edited by sleve_mcdichael

        @astrok said in Mapping controller button to keyboard key for Retroarch ROM:

        retroarch-core-options.cfg

        but this appears to be for everything in lr-fuse.

        Setting core options per ROM:

        https://retropie.org.uk/docs/RetroArch-Core-Options/#setting-core-options-per-rom

        A 1 Reply Last reply Reply Quote 0
        • A
          astrok @sleve_mcdichael
          last edited by

          @sleve_mcdichael Thank you, that was helpful. Finally getting my head around the quirks of Retroarch and managed to get it working :)

          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.