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.
    • 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
                          • meleuM
                            meleu @superdan
                            last edited by

                            @superdan you say if it's good. Are your hotkeys working fine?

                            @adafruitfly your problem deserve its own thread. Please, start a new one.

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

                              @meleu
                              NOPE dont works for my joypad :(
                              i can exit games only with ESC (select + start no way)
                              even in lr-fba-next i cant go to menu settings with
                              Select & X

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

                                @superdan you f+×%#ed up your configs while the "save config on exit" was on. I suggest you to rename the retroarch.cfg.rp-dist in your ...configs/fba/ directory to retroarch.cfg

                                Maybe it happened to several other files...

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

                                  still done @meleu but didnt change.
                                  How can i re-install retroarch with default values?

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

                                    @meleu or maybe can you send me your retroarch.conf? Or fba2x.cfg ?

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

                                      @meleu NOW START + SELECT WORKS!!!!
                                      THANKS!!!
                                      Now i miss only to enter to fba-next options menu and ive done!

                                      1 Reply Last reply Reply Quote 1
                                      • A
                                        adafruitfly @meleu
                                        last edited by

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

                                        @superdan you say if it's good. Are your hotkeys working fine?

                                        @adafruitfly your problem deserve its own thread. Please, start a new one.

                                        This forum won't allow me to submit a new topic for some reason. I keep getting error messages. I can only reply to existing posts.

                                        1 Reply Last reply Reply Quote 1
                                        • 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.