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

    Run Command suggestion

    Scheduled Pinned Locked Moved Ideas and Development
    run commandsuggestion
    12 Posts 4 Posters 3.4k 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.
    • iCLintI
      iCLint
      last edited by

      Would it be possible to change entering the run menu from pressing any key or joy stick button to perhaps something like Hold L+R buttons. this would allow the Run menu to still be activated but less likely to be accidentally activated.

      meleuM 1 Reply Last reply Reply Quote 1
      • meleuM
        meleu @iCLint
        last edited by

        @iCLint I liked the idea. And then I thought in NES clone controllers... How could they access runcommand menu?

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        D 1 Reply Last reply Reply Quote 0
        • D
          Dochartaigh @meleu
          last edited by

          @meleu

          Nintendo controllers can't do much of anything to be honest....try saving a game, or loading a save (the two most common hotkeys). This has been the bane of my existence for a couple weeks now and I STILL can't figure out how to remap hotkeys for Nintendo controllers, so I just don't use them anymore, sadly (as I had original controllers all hooked up with USB adapters and all ;)

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

            @Dochartaigh its easy to set up the save states for your nes controllers. Open up /opt/retropie/configs/all/retroarch-joypads/nAMEoFyOURnEScONTROLLER.cfg and add these lines:

            input_load_state_axis = "-0"
            input_save_state_axis = "+0"
            input_state_slot_increase_axis = "-1"
            input_state_slot_decrease_axis = "+1"
            

            Also back this file up. Because if you reconfigure your controller in emulationstation you lose these settings.

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

              @edmaul69

              Now where were you on my other two topics about this which nobody could solve??!?! Thank you so much! I will try this when I get home.

              I'm assuming this will let me use Select+ up/down/left/right to save/load games and advance/decrease the save state slot? Is there any way to make the hotkey Start instead of Select? (I've been playing Castlevania III recently and Select is used in that game extensively...).

              I think my problem is how I had been editing the individual retroarch.cfg file for the NES system which was doing NOTHING in regards to changing hotkeys. I will try editing the individual "NESPCGamePadNESPCGamePad.cfg" config for for these original NES controllers.

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

                @Dochartaigh i am not sure how i missed the topics but yes the d-pad is used for all that stuff.

                D 1 Reply Last reply Reply Quote 0
                • iCLintI
                  iCLint
                  last edited by

                  It doesn't have to be Hold L+R it could be hold A+B or any other combination point being to just make it hard to accidently activate. Even hold A for 2sec or sonething.

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

                    @edmaul69 said in Run Command suggestion:

                    @Dochartaigh i am not sure how i missed the topics but yes the d-pad is used for all that stuff.

                    It worked! Thank you so much again. Any idea how to switch the hotkey from being Select to Start (so it's Start+ up/down/left or right)? This is my current NES controller config:

                    [code] (how do you get this code to go in a nice black box, BTW???)
                    input_device = " NES PC Game Pad NES PC Game Pad "
                    input_driver = "udev"
                    input_start_btn = "3"
                    input_exit_emulator_btn = "3"
                    input_up_axis = "-1"
                    input_a_btn = "0"
                    input_b_btn = "1"
                    input_reset_btn = "1"
                    input_down_axis = "+1"
                    input_right_axis = "+0"
                    input_left_axis = "-0"
                    input_select_btn = "2"

                    input_enable_hotkey_btn = "2"

                    input_load_state_axis = "-0"
                    input_save_state_axis = "+0"
                    input_state_slot_increase_axis = "-1"
                    input_state_slot_decrease_axis = "+1"
                    [/code]

                    You would think that when I change the "enable_hotkey_btn" from "2" (which is Select) to "3" (which is the number they have for the start button), it would change the hotkey from Select to Start...but it doesn't...and hitting Start then exits the ROM.

                    When I do the above changes AND delete the "input_exit_emulator_btn = "3"" line, it'll switch the hotkey from Select to Start like I want, but I can no longer hit Select+Start to exit the game.

                    ...what programming language is this anyway? I know HTML pretty well and CSS (albeit technically a 'markup language'), and Javascript enough to modify scripts for my means, but to me this code doesn't seem to follow logic a lot of the time.

                    edmaul69E iCLintI 2 Replies Last reply Reply Quote 0
                    • edmaul69E
                      edmaul69 @Dochartaigh
                      last edited by edmaul69

                      @Dochartaigh if swapping the numbers on exit and hotkey isnt working correctly it means you have overriding commands in files in /opt/retropie/configs/nes. Or possibly in /opt/retropie/configs/all/retroarch.cfg. You need to go through those files and remove any input_enable_hotkey_btn or input_exit_emulator_btn commands you added in those files.

                      1 Reply Last reply Reply Quote 0
                      • iCLintI
                        iCLint @Dochartaigh
                        last edited by

                        @Dochartaigh said in Run Command suggestion:

                        When I do the above changes AND delete the "input_exit_emulator_btn = "3"" line, it'll switch the hotkey from Select to Start like I want, but I can no longer hit Select+Start to exit the game.

                        sounds like you mapped both "start" and "hotkey" to the same button hence when you press you quit the game.

                        @Dochartaigh said in Run Command suggestion:

                        ...what programming language is this anyway?

                        It's not, its just a text file of variables for the emulator to read.

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

                          @iCLint good catch. I missed that. @Dochartaigh yeah as iclint stated you need to change the exit emulator to the select keys number. You cant have both exit and hotkey be 3.

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

                            OK, I'm all set now. Got everything working. Going to post it here and on my original topic just in case it helps anyone. My actual code switches Select and Start, but most people won't want that so this is the normal way to be able to save on a 2-button NES controller. Thank you to all who helped!

                            [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 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.