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

    Can't map new HotKeys by modifying retroarch.cfg

    Scheduled Pinned Locked Moved Help and Support
    hotkeysretroarch.cfglr-fceumm
    12 Posts 4 Posters 4.0k 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.
    • D
      Dochartaigh
      last edited by Dochartaigh

      In case this helps anybody else, here’s the code I used so you can save (and change save slots) with a NES/Nintendo-style 2-button controller. Select+ Left/right loads saves/saves game, and Select+ up/down increases/decreases the save state. You want to go to the “/opt/retropie/configs/all/retroarch-joypads/“ folder and look for a .cfg file which is usually named something relating to your NES-stule controller (mine is named “NESPCGamePad.cfg”).

      [code]
input_device = " NES PC Game Pad NES PC Game Pad "
input_driver = "udev"
      input_up_axis = "-1"
input_down_axis = "+1"
input_left_axis = "-0"
input_right_axis = "+0"
input_start_btn = "3"
input_select_btn = "2"
input_a_btn = "0"
input_b_btn = "1"
      input_enable_hotkey_btn = "2"
input_reset_btn = "1"
input_exit_emulator_btn = "3"
      input_load_state_axis = "-0"
input_save_state_axis = "+0"
input_state_slot_increase_axis = "-1"
input_state_slot_decrease_axis = "+1"
[/code]

      1 Reply Last reply Reply Quote 1
      • dankcushionsD
        dankcushions Global Moderator @Dochartaigh
        last edited by dankcushions

        @Dochartaigh

        input_save_state_btn = "h0right"
        input_load_state_btn = "h0left"
        input_state_slot_increase_btn = “5”
        input_state_slot_decrease_btn = “4”
        

        last two lines have the wrong type of double quote. should be the straight ones: "" not “”

        1 Reply Last reply Reply Quote 1
        • dankcushionsD
          dankcushions Global Moderator
          last edited by

          also we can't know if this configuration is correct without seeing the full config file for your nintendo controller found in /opt/retropie/configs/all/retroarch-joypads

          1 Reply Last reply Reply Quote 0
          • dankcushionsD
            dankcushions Global Moderator
            last edited by

            oh i see you already fixed it :) never mind!

            D 1 Reply Last reply Reply Quote 0
            • D
              Dochartaigh @dankcushions
              last edited by Dochartaigh

              @dankcushions said in Can't map new HotKeys by modifying retroarch.cfg:

              oh i see you already fixed it :) never mind!

              I never changed my post, just copy and pasted my code! I don't even know how to get the slanted quotes!!! lol

              Hey, what forum code do you use to get the nice black box to put code in? (so I can start posting all fancy like that in the future ;)

              dankcushionsD edmaul69E 2 Replies Last reply Reply Quote 0
              • dankcushionsD
                dankcushions Global Moderator @Dochartaigh
                last edited by

                @Dochartaigh said in Can't map new HotKeys by modifying retroarch.cfg:

                @dankcushions said in Can't map new HotKeys by modifying retroarch.cfg:

                oh i see you already fixed it :) never mind!

                I never changed my post, just copy and pasted my code! I don't even know how to get the slanted quotes!!! lol

                the thing i was quoting was your nes config. if it's still like that you'll want to fix it. if you edit files in some text editor on your computer they can automatically mess up the quotes like that without you doing anything. best to use notepad or something like that, or ideally edit it on the pi directly using nano.

                Hey, what forum code do you use to get the nice black box to put code in? (so I can start posting all fancy like that in the future ;)

                :D see http://commonmark.org/help/

                D 1 Reply Last reply Reply Quote 0
                • D
                  Dochartaigh @dankcushions
                  last edited by Dochartaigh

                  @dankcushions said in Can't map new HotKeys by modifying retroarch.cfg:

                  the thing i was quoting was your nes config. if it's still like that you'll want to fix it. if you edit files in some text editor on your computer they can automatically mess up the quotes like that without you doing anything. best to use notepad or something like that, or ideally edit it on the pi directly using nano.

                  I use Adobe Dreamweaver on my Mac to edit code - even the stock text edit program (which is supposed to be TEXT only) sometimes rarely adds little things to code so I prefer to edit it in a program specifically made for editing code (don't like to use the built-in Linux editor, can't even drag and select text and simple tings like that).

                  And thanks for the Markdown tutorial!
                  Seems 
                  to 
                  work
                  
                  1 Reply Last reply Reply Quote 0
                  • edmaul69E
                    edmaul69 @Dochartaigh
                    last edited by edmaul69

                    @Dochartaigh ok so how you do the code block is simple. So paste your info you need in code block. Make sure there is a blank line on top and bottom of the code. On each line (not ones that run over to the next line though) press spacebar 4 times so the line is indented 4 spaces. So here is an example of how you do it:
                    Code info here would be in code block if i put a blank line between this line and the line above it and indented these two sentences 4 spaces.
                    You dont put a blank line in between multiple lines of code block.

                    Now if you put four spaces at the beginning of line and a space in between it and normal text it will look like this:

                    Code info here would be in code block if i put a blank line between this line and the line above it. 
                    You dont put a blank line in between multiple lines of code block.
                    
                    BuZzB 1 Reply Last reply Reply Quote 0
                    • BuZzB
                      BuZz administrators @edmaul69
                      last edited by

                      @edmaul69 you can just put ``` above and below the block of code - saves having to indent.

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      edmaul69E 1 Reply Last reply Reply Quote 0
                      • edmaul69E
                        edmaul69 @BuZz
                        last edited by

                        @BuZz i wish i knew that sooner....😄

                        BuZzB 1 Reply Last reply Reply Quote 0
                        • BuZzB
                          BuZz administrators @edmaul69
                          last edited by

                          @edmaul69 at the top right of the box where you edit posts it has a link compose? which opens a popup which links to http://commonmark.org/help/ which has all the info :)

                          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                          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.