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

    Clarification regarding key remappings

    Scheduled Pinned Locked Moved Help and Support
    key remappingsconfig gamepad
    3 Posts 2 Posters 200 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.
    • S
      Sabercyclone
      last edited by Sabercyclone

      I'm currently setting up Retropie on a Raspberry Pi 3B+ and I'm slightly confused regarding the syntax for key mapping files.

      I doubt this will be necessary, but I'm running Retropie 4.8, on a Raspberry Pi 3B+, with a 16Gb SD card, and using this as the case and controller, with the inluced power supply as listed.

      I'm starting with the Megadrive to get the hang of things and for legal disclaimer purposes, I do own vintage physical copies of both games I'm working with (which to the surprise of no one have lasted longer than my consoles have). I'm currently working on the retroarch.cfg file in "/opt/retropie/configs/megadrive/", however I'm slightly confused. My system is listing the buttons with inverted commas around them, eg:

      input_player1_joypad_index = "0"

      However this guide , lists the same command line as:

      input_player1_joypad_index = 0

      Common sense says to disregard this part of the guide and simply list the button input values with inverted commas, ie:

      input_player1_b_btn = "1"

      instead of

      input_player1_b_btn = 1

      However Murphy's Law tells me that if I assume this is the case and don't ask, I'll be wrong.

      Am I correct in thinking that I should just disregard this aspect of the guide?

      Also, and this is more of a personal preference question. Suppose for the sake of argument, that we were to number the buttons on a 6 button arcade-style controller as 4,5,6;1,2,3 (left to right, top to bottom). Mapping the input menu button toggle as button 1 does make sense, however I'm wondering in people's experience, whether they find that mapping the save and load buttons to 6 and 5 respectively works for them, or if they've found that another configuration works better

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

        input_player1_b_btn = "1"
        

        instead of

        input_player1_b_btn = 1
        

        @Sabercyclone for numerical values like that, it works equally well with or without the quotation marks. If the value is a string containing spaces or certain other special characters, the quotes may be required.

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

          @sleve_mcdichael Thanks for the clarification. I think I'll just use quotes anyways since, it sounds like it's a good habit to get into for more complex data like strings.

          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.