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

    retroarch.cfg

    Scheduled Pinned Locked Moved Help and Support
    retroarch.cfg hhot key
    16 Posts 3 Posters 5.2k 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.
    • flagrant99F
      flagrant99
      last edited by

      Still can't get this thing to work. I took the bluetooth controller out of the equation and it still won't work. I have GPIO controls setup using adafruit retro game. Emulation Station works fine using these controls. Button A, B, joystick, start and select. retroarch.cfg shows input_player_1_a "a". But when I get into mame rgui shows it as y. It seems retroarch.cfg does not control libretto mame? I hand edited retroarch.cfg still y. Went into retropie setup, configuration tools, retroarch, configure keyboard, shows input_player_1_a "a". mame shows y. Also did configure keyboard hotkey, 1 Hotkeys Enabled default. Never prompts for hotkey. Since the adafruit driver is simulating keyboard I want input_enable_hotkey_btn="5". Won't work. The only way I can get out of game is to hook up keyboard to USB and press escape. Wow a joystick was very simply to setup but keyboard is insane. Has anybody gotten this thing to work with adfruit retro game and a keyboard hotkey?

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

        Deleted

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

          @flagrant99 all of the configs like input_enable_hotkey = "nul" that dont have _btn which stands for button are used for keyboard. So you would do something like

          input_enable_hotkey = "esc"
          

          For the keyboard

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

            @flagrant99 so you can have both a keyboard and controller hotkey. However you didnt have to set a hotkey for your controller. The individual controllers config do that so you can use that controllers hotkey. I would change that one back to nul

            1 Reply Last reply Reply Quote 1
            • flagrant99F
              flagrant99
              last edited by flagrant99

              Thank you. I was setting the btn version to a key. Now I am setting
              input_enable_hotkey_btn = "nul"
              input_enable_hotkey = "z"

              Now I expected z+a to exit, but now I see that z+escape does it. I will have to try
              input_exit_emulator = "1"

              1 Reply Last reply Reply Quote 0
              • flagrant99F
                flagrant99
                last edited by

                z+1 does nothing. So I am starting to wonder if keys cannot be multifunction like joy pad buttons.

                edmaul69E 1 Reply Last reply Reply Quote 0
                • flagrant99F
                  flagrant99
                  last edited by

                  z+j worked. Nothing was using "j". Then I tried "z"+"b" that worked. It does not like "1". I will change my retrogame.cfg to stop simulating 1 and 5 keypresses and just use letters. I think I am getting closer.

                  1 Reply Last reply Reply Quote 0
                  • flagrant99F
                    flagrant99
                    last edited by

                    Select + Start is working!
                    Documenting everything here

                    https://sites.google.com/site/gregsqna/raspberry-pi/build-1/controls/adafruit-retrogame

                    Still need to HotKey up other functions and figure out why button A will not register in game. It register in RGUI, and Emulation Station Fine.

                    Here's my edits
                    input_player1_a = "A"
                    input_player1_b = "B"
                    input_player1_y = "nul"
                    input_player1_x = "nul"
                    input_player1_start = "K"
                    input_player1_select = "J"
                    input_player1_l = "nul"
                    input_player1_r = "nul"
                    input_player1_left = "left"
                    input_player1_right = "right"
                    input_player1_up = "up"
                    input_player1_down = "down"

                    input_enable_hotkey_btn = "nul"
                    input_exit_emulator = "K"
                    input_enable_hotkey = "J"

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

                      @flagrant99 retroarch doesnt like the num keys and the num lock keys for some reason

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

                        @flagrant99 a works as hotkey and esc for exit. Thats what i use. Not sure your issue with a

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

                          @flagrant99 you might need to assign keys to x and y. A is originally y’s button and that might be causing an issue

                          1 Reply Last reply Reply Quote 1
                          • flagrant99F
                            flagrant99
                            last edited by

                            Thanks for all your help. Got back to this and finally figured it out. The Key a-ha moment came when I realized RGUI has NO Concept of input_player1_a . input_player1_a actually always gets mapped to User 1 Button 4. input_player1_b to User 1 Button 1. So I came up with this understanding:

                            input_player1_a is REALLY input_player1_y
                            input_player1_b is really input_player1_a
                            input_player1_y is really input_player1_b
                            input_player1_x is really input_player1_x

                            input_player1_a = "Y"
                            input_player1_b = "A"
                            input_player1_y = "B"
                            input_player1_x = "X"

                            and yeah STAY AWAY FROM #'s keys.

                            Thx Again.

                            caver01C 1 Reply Last reply Reply Quote 0
                            • caver01C
                              caver01 @flagrant99
                              last edited by caver01

                              @flagrant99 said in retroarch.cfg:

                              and yeah STAY AWAY FROM #'s keys.

                              Not true. I have SELECT and START for four players all mapped to numbers on a keyboard and this works just fine. These are MAME defaults, after all. However, if you pay attention to the allowed values commented in the default retroarch.cfg file, you see that you have to specify numbers as "num1", "num2", etc. not "1", "2", and so on.

                              My 4-player cocktail style cabinet built as a custom "roadcase"

                              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.