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

    Remapping hotkeys from keyboard to joypad? HELP!

    Scheduled Pinned Locked Moved Help and Support
    33 Posts 7 Posters 15.1k 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.
    • FloobF
      Floob @MOXEZ
      last edited by

      @MOXEZ said in Remapping hotkeys from keyboard to joypad? HELP!:

      Hello guys.

      Can anyone help me with this problem? When i enter RetroArch and try to bind some of the hotkeys to the controller it doesn't save the changes. The only thing i really want is to be able to exit to emulation menu from games with my joypad. In the beginning select+start worked but not anymore. When i plug a keyboard in i can easily exit with Alt+Esc.

      Can anyone help me change the hotkeys from the keyboard to the joypad so i am able so save games, load games and exit to emulation station with the joypad?

      Thank you so much for your help :)

      The hotkeys should be automatically generated for you when you add your controller in the Emulation Station interface.
      Can you post your controller file on pastebin?
      Its the one generated in opt/retropie/configs/all/retroarch-joypads/

      Please read the Docs before asking a new question.
      RetroPie Help Guides: https://goo.gl/3gcNsT

      1 Reply Last reply Reply Quote 0
      • S
        Sinistar83
        last edited by

        I'm having the exact same issue as @MOXEZ , but with a Dualshock 4 controller. Here's my Pastebin http://pastebin.com/SJL4nbf9

        I remember when I initially set up the retropie I had the keybored plugged in and I set up the buttons as if it were a controller and I did set up select = F1 and start = F2, so i can exit emulator games via F1+F2, but the controller start+select do not work.
        My friend brought his SNES buffalo pad over and we were playing some co-op games and start+select would not exit emulator either.

        Just trying to figure out why the keyboard is taking precedence over the gamepad in the emulators when trying to do the hotkeys?

        Thanks

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

          @Sinistar83 hotkeys only work on controller 1 so if your keyboard is set up as controller 1 then the hotkeys wont work on the controller. not sure if you were using the keyboard as controller 1 or not

          S 1 Reply Last reply Reply Quote 0
          • S
            Sinistar83 @edmaul69
            last edited by

            @edmaul69 said in Remapping hotkeys from keyboard to joypad? HELP!:

            @Sinistar83 hotkeys only work on controller 1 so if your keyboard is set up as controller 1 then the hotkeys wont work on the controller. not sure if you were using the keyboard as controller 1 or not

            @edmaul69 Thanks for the reply. I'm not sure how to test and tell which is controller 1. I know when I plug in the DS4 controller it says controller 0 but I think that means it's plugged into USB 0.

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

              @Sinistar83 that means its controller 0 not usb 0. Second controller would say controller 1

              S 1 Reply Last reply Reply Quote 0
              • S
                Sinistar83 @edmaul69
                last edited by

                @edmaul69 well it doesn't matter what port the controller is or if the keyboard is unplugged but the hotkeys will not work on the joypads, only the keyboard. :(

                1 Reply Last reply Reply Quote 0
                • S
                  superdan
                  last edited by superdan

                  @Sinistar83 did you solved this issue? I have the same problem

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

                    @superdan can you detail your problem? The @Sinistar83 one seems to be that he uses the keyboard to control player1. And only player1 can control RGUI/use hotkeys.

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

                      @meleu thanks for your reply. I have the same problem. i set a joypad adn a keyboard setted as a pad also.
                      Until yessterday hotkeys were on the pad ( start+select to exit game ). Today hotkeys are on keyboard.
                      Is there a way to set joy as first pad and keyboard as second?
                      I also tried to cancel retroarch config files for these two devices but i cant figure out how to do it because they are genercic devices , so i cannot find their configuration name in the retroarch devices folder. I dont know how retroarch named them.
                      Also it would be a nice thing to completelly remove these devices and reconfigure but i cant find a way to do it.
                      Thanks a lot

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

                        @superdan said in Remapping hotkeys from keyboard to joypad? HELP!:

                        Until yessterday hotkeys were on the pad ( start+select to exit game ). Today hotkeys are on keyboard.

                        The hotkeys are allways on the device used to control the player1.

                        Is there a way to set joy as first pad and keyboard as second?

                        You must know the joypad's index number, and then set it in input_player1_joypad_index at /opt/retropie/configs/all/retroarch.cfg file. To set the keyboard as player2 I think you have to set input_libretro_device_p2 = 3 in the same file.

                        I also tried to cancel retroarch config files for these two devices but i cant figure out how to do it because they are genercic devices , so i cannot find their configuration name in the retroarch devices folder. I dont know how retroarch named them.

                        The joypads configs are usually in /opt/retropie/configs/all/retroarch-joypads/YOUR_JOYPAD_NAME.cfg.

                        The keyboard configs are in the /opt/retropie/configs/all/retroarch.cfg file.

                        Also it would be a nice thing to completelly remove these devices and reconfigure but i cant find a way to do it.

                        When in emulationstation press start and choose "Configure Input". Hold a button on the device you want to configure.

                        Further reading: https://github.com/retropie/retropie-setup/wiki/RetroArch-Configuration

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

                          @meleu thank you so much ill try this evening. Is there any way to know how what is device index number?
                          Thanks again

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

                            @superdan if you have only one joypad connected its index is probably 0.

                            To choose which joypad to use for players 1-4 you can use the retropie_setup configeditor or the tool we talk about in this thread:
                            https://retropie.org.uk/forum/topic/1167/here-is-a-way-to-select-joystick-for-players-1-4-global-or-emu-specific

                            • Useful topics
                            • joystick-selection tool
                            • rpie-art tool
                            • achievements I made
                            1 Reply Last reply Reply Quote 0
                            • S
                              superdan
                              last edited by superdan

                              thanks @meleu
                              now i deleted in order
                              /opt/retropie/configs/all/retroarch.conf
                              /opt/retropie/configs/arcade/retroarch.conf
                              /opt/retropie/configs/mame-libretro/retroarch.conf

                              my roms are under /arcade/ folder and i use lr-mame2003

                              i deleted also my joy entry in

                              /opt/retropie/configs/all/emulationstation/es_input.cfg
                              and
                              /opt/retropie/configs/all/retroarch-joypads/DragonRiseInc.GenericUSBJoystick.cfg.bak ( the only one )

                              restarted the system and he asked my about a new jou so i setted it. Well.
                              Now my keyboard is no more a joystick... Well!

                              BUT
                              ive lost my hot keys in my joypad ( select + start no more exit games , i need to press ESC )

                              i installed your program
                              https://retropie.org.uk/forum/topic/1167/here-is-a-way-to-select-joystick-for-players-1-4-global-or-emu-specific
                              and now i have nly 1 you Generic USB at numer 1 of the list

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

                                @superdan said in Remapping hotkeys from keyboard to joypad? HELP!:

                                thanks @meleu
                                now i deleted in order
                                /opt/retropie/configs/all/retroarch.conf
                                /opt/retropie/configs/arcade/retroarch.conf
                                /opt/retropie/configs/mame-libretro/retroarch.conf

                                meme

                                I didn't say to you delete these files!

                                OK. Use retropie_setup and reinstall retroarch from binary to get back at least the ...all/retroarch.cfg file.

                                • Useful topics
                                • joystick-selection tool
                                • rpie-art tool
                                • achievements I made
                                1 Reply Last reply Reply Quote 1
                                • S
                                  superdan
                                  last edited by superdan

                                  But all these files had been auto-recreated after a reboot by retropie, should i reinstall retroarch anyway?
                                  mi /all/retroarch.cfg has been re-created and is full of instruction inside.
                                  Now all works except hotkeys

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

                                    @superdan can you paste here the output of ls /opt/retropie/configs/all?

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

                                      @meleu said in Remapping hotkeys from keyboard to joypad? HELP!:

                                      ls /opt/retropie/configs/all

                                      @meleu sure here it is

                                      ls /opt/retropie/configs/all

                                      autoconf.cfg joystick-selection.cfg runcommand.cfg
                                      autostart.sh retroarch.cfg runcommand-launch-dialog.cfg
                                      content_history.lpl retroarch.cfg.rp-dist runcommand-onstart.sh
                                      emulationstation retroarch-core-options.cfg
                                      emulators.cfg retroarch-joypads

                                      also in this link here is my retroarch.cfg in /all/

                                      /opt/retropie/configs//all/retroarch.cfg

                                      my joy settings in /opt/retropie/configs/all/retroarch-joypads/DragonRiseInc.GenericUSBJoystick.cfg

                                      input_device = "DragonRise Inc. Generic USB Joystick "
                                      input_driver = "udev"
                                      input_l_btn = "8"
                                      input_load_state_btn = "8"
                                      input_start_btn = "7"
                                      input_exit_emulator_btn = "7"
                                      input_up_axis = "-3"
                                      input_a_btn = "2"
                                      input_b_btn = "3"
                                      input_reset_btn = "3"
                                      input_down_axis = "+3"
                                      input_r_btn = "9"
                                      input_save_state_btn = "9"
                                      input_r2_btn = "4"
                                      input_right_axis = "+0"
                                      input_state_slot_increase_axis = "+0"
                                      input_x_btn = "0"
                                      input_menu_toggle_btn = "0"
                                      input_select_btn = "6"
                                      input_enable_hotkey_btn = "6"
                                      input_y_btn = "1"
                                      input_left_axis = "-0"
                                      input_state_slot_decrease_axis = "-0"
                                      input_l2_btn = "5"

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

                                        @superdan oh... you use "save config on exit" turned on. It's a good way to go mad. :-)
                                        I suggest to use it turned off. To do so, you have to delete ...all/retroarch.cfg again and then rename that retroarch.cfg.rp-dist to retroarch.cfg.

                                        • Useful topics
                                        • joystick-selection tool
                                        • rpie-art tool
                                        • achievements I made
                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          superdan
                                          last edited by

                                          @meleu thanks

                                          here is the new version.

                                          /opt/retropie/configs//all/retroarch.cfg

                                          Do you think now is good?
                                          Thanks

                                          meleuM 1 Reply Last reply Reply Quote 0
                                          • A
                                            adafruitfly
                                            last edited by

                                            Hello I am having trouble with my USB arcade sticks not being recognized by my new PI Zero. I plug them in and emulation station doesn't show any gamepad attached.

                                            I built these arcades sticks myself using a PS3/PC ZERO DELAY USB ENCODER PCB as the input device and all of these arcade sticks work with my PI 2 for the last year.

                                            All of my regular gamepad (Microsoft sidewinder a seem to work. Is it perhaps an issue with the retro pie image file for the zero not supporting these arcade stick devices? Or is it that this little device doesn't produce enough juice to power these larger controllers

                                            Is there a possible fix?

                                            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.