• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

lr-fuse - remapping keyboard controls

Scheduled Pinned Locked Moved Help and Support
lr-fusemappings
27 Posts 4 Posters 9.8k 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
    DarkWolf
    last edited by DarkWolf 5 Jan 2017, 13:22 1 May 2017, 12:19

    I already tried something like that but RetroArch doesn't seem to support keyboard input maped to controller buttons.

    I guess you know about the hotkey function... You could add some new hotkeys to the hotkey config file and asign these to controller buttons in the RetroArch overlay. I don't know if this works cause I never tested this. So you could try that
    The hotkey config is located here (if I remeber that correctly):

    ~/RetroPie-Setup/scriptmodules/supplementary/hotkey.sh

    System: Raspberry 3 Model B, RetroPie 4.2.1
    Storage: 16gb Micro SD, 64gb USB Drive
    Theme: Updated NBBA

    Documentation solves many problems: https://retropie.org.uk/docs/

    M 1 Reply Last reply 1 May 2017, 14:56 Reply Quote 0
    • M
      mediamogul Global Moderator @DarkWolf
      last edited by 1 May 2017, 14:56

      @DarkWolf

      RetroArch doesn't seem to support keyboard input maped to controller buttons.

      It supports keyboard mapping. Although, I can't remember if you have to add the entries manually. A complete two player example from mine is:

      input_player1_a = "a"
      input_player1_b = "b"
      input_player1_y = "y"
      input_player1_x = "x"
      input_player1_start = "t"
      input_player1_select = "e"
      input_player1_l = "l"
      input_player1_r = "r"
      input_player1_left = "left"
      input_player1_right = "right"
      input_player1_up = "up"
      input_player1_down = "down"
      input_player1_l2 = "d"
      input_player1_r2 = "f"
      input_player1_l3 = "c"
      input_player1_r3 = "v"
      
      input_player2_a = "k"
      input_player2_b = "m"
      input_player2_y = "o"
      input_player2_x = "n"
      input_player2_start = "num9"
      input_player2_select = "num0"
      input_player2_l = "p"
      input_player2_r = "q"
      input_player2_left = "g"
      input_player2_right = "h"
      input_player2_up = "i"
      input_player2_down = "j"
      input_player2_l2 = "s"
      input_player2_r2 = "u"
      input_player2_l3 = "w"
      input_player2_r3 = "z"
      

      RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

      D 1 Reply Last reply 1 May 2017, 14:58 Reply Quote 0
      • D
        DarkWolf @mediamogul
        last edited by 1 May 2017, 14:58

        @mediamogul If I understood the post correctly he doesn't want to map the joystick buttons to keyboard keys...
        He wants to press a joystick button which then acts like a keyboard key press

        System: Raspberry 3 Model B, RetroPie 4.2.1
        Storage: 16gb Micro SD, 64gb USB Drive
        Theme: Updated NBBA

        Documentation solves many problems: https://retropie.org.uk/docs/

        M 1 Reply Last reply 1 May 2017, 15:07 Reply Quote 0
        • M
          mediamogul Global Moderator @DarkWolf
          last edited by 1 May 2017, 15:07

          @DarkWolf

          Ah, OK. If that's the case, then RetoArch needs to have the proper hooks to be able to remap a system's keyboard controls to the RetroPad from the core's quick menu. If it's not available there, then it's still possible with an external mapping solution such as Linux Joystick Mapper or xboxdrv.

          RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

          D 1 Reply Last reply 1 May 2017, 15:09 Reply Quote 1
          • D
            DarkWolf @mediamogul
            last edited by 1 May 2017, 15:09

            @mediamogul
            I know about those options and I wanted to mention them, but I had some terrible experiences with them some time ago, so I left them out.
            But you (@tuki_cat ) could definetley check those out too

            System: Raspberry 3 Model B, RetroPie 4.2.1
            Storage: 16gb Micro SD, 64gb USB Drive
            Theme: Updated NBBA

            Documentation solves many problems: https://retropie.org.uk/docs/

            M 1 Reply Last reply 1 May 2017, 15:14 Reply Quote 0
            • M
              mediamogul Global Moderator @DarkWolf
              last edited by 1 May 2017, 15:14

              @DarkWolf

              I had some terrible experiences with them some time ago

              I definitely understand. They can be an uphill slog to learn, but once you know how to use them, it opens up an almost infinite amount of control.

              RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

              D 1 Reply Last reply 1 May 2017, 15:15 Reply Quote 0
              • D
                DarkWolf @mediamogul
                last edited by 1 May 2017, 15:15

                @mediamogul
                Yeah I know... At some point of time I knew how to use it (kinda), but then decided to just use a keyboard instead of mapping different inputs for over 500 roms indevidualy.

                System: Raspberry 3 Model B, RetroPie 4.2.1
                Storage: 16gb Micro SD, 64gb USB Drive
                Theme: Updated NBBA

                Documentation solves many problems: https://retropie.org.uk/docs/

                M 1 Reply Last reply 1 May 2017, 15:41 Reply Quote 0
                • M
                  mediamogul Global Moderator @DarkWolf
                  last edited by mediamogul 5 Jan 2017, 16:41 1 May 2017, 15:41

                  @DarkWolf

                  Most times you can map to a whole system and avoid individual ROMs, but with computer systems that never had joystick support, you could easily end up mapping that many if not more. A trusty keyboard would indeed be the best option there. It never ceases to amaze me at how many options are available on an open platform. I look at all the commercial operating systems being turned into walled gardens and it really gets frustrating by comparison.

                  RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                  D 1 Reply Last reply 1 May 2017, 15:46 Reply Quote 0
                  • D
                    DarkWolf @mediamogul
                    last edited by 1 May 2017, 15:46

                    @mediamogul
                    As I only wanted to play ZX Spectrum games like atic atac, which are able to use a joystick, but also need a keyboard key (like z for pickung stuff up), I had to map those individualy (they were different in each game :/)

                    System: Raspberry 3 Model B, RetroPie 4.2.1
                    Storage: 16gb Micro SD, 64gb USB Drive
                    Theme: Updated NBBA

                    Documentation solves many problems: https://retropie.org.uk/docs/

                    M 1 Reply Last reply 1 May 2017, 16:02 Reply Quote 0
                    • M
                      mediamogul Global Moderator @DarkWolf
                      last edited by 1 May 2017, 16:02

                      @DarkWolf

                      I need to check out the ZX Spectrum some day. The library is massive and looks to have some great games.

                      RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                      D 1 Reply Last reply 1 May 2017, 16:08 Reply Quote 1
                      • D
                        DarkWolf @mediamogul
                        last edited by 1 May 2017, 16:08

                        @mediamogul Most of them are really awesome (even though I'am 17, I really like such games)

                        System: Raspberry 3 Model B, RetroPie 4.2.1
                        Storage: 16gb Micro SD, 64gb USB Drive
                        Theme: Updated NBBA

                        Documentation solves many problems: https://retropie.org.uk/docs/

                        1 Reply Last reply Reply Quote 1
                        • T
                          tuki_cat
                          last edited by 1 May 2017, 16:37

                          Thanks for all the suggestions, I have some time later so I will see what works.

                          @DarkWolf - you should definitely check out the Spectrum, there are so many fantastic games

                          D 1 Reply Last reply 1 May 2017, 16:38 Reply Quote 0
                          • D
                            DarkWolf @tuki_cat
                            last edited by 1 May 2017, 16:38

                            @tuki_cat I already have 140 spectrum games installed :D
                            Just using wireless keyboard instead of controller

                            System: Raspberry 3 Model B, RetroPie 4.2.1
                            Storage: 16gb Micro SD, 64gb USB Drive
                            Theme: Updated NBBA

                            Documentation solves many problems: https://retropie.org.uk/docs/

                            1 Reply Last reply Reply Quote 0
                            • T
                              tuki_cat
                              last edited by 1 May 2017, 16:45

                              Sorry that was supposed to @mediamogul!

                              M 1 Reply Last reply 1 May 2017, 16:51 Reply Quote 0
                              • M
                                mediamogul Global Moderator @tuki_cat
                                last edited by 1 May 2017, 16:51

                                @tuki_cat

                                I look forward to checking it out. It's got to be the most popular retro system that I have no experience with. It was never really introduced over here in the States, but I've been reading Retro Gamer magazine for a few years now and I'm always impressed with the titles I read about there.

                                RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                1 Reply Last reply Reply Quote 0
                                • D
                                  dudleydes @tuki_cat
                                  last edited by 1 May 2017, 18:49

                                  @tuki_cat For ZX Spectrum games that require extra keys to be mapped to a joystick, I use ZEsarUX which can be installed from the Optional Packages menu in the RetroPie Setup Script.

                                  To map the extra key for 1942 in ZEsarUX, you would create a text file in the roms folder called 1942.tap.config, assuming the tape name is 1942.tap.

                                  Next add the line below in the config file to map button 15, for instance, to the keystroke 1:

                                  --joystickkeybt 15 '1'

                                  I have written a tutorial how to create config file for these extra mappings here using Chuckie Egg, which doesn't support the Kempston joystick, and Head Over Heels, which uses the keys 'z' and 's' in addition to the Kempston, as examples.

                                  It's worth checking the other tutorial for the default mappings in ZEsarUX.

                                  D T 2 Replies Last reply 1 May 2017, 18:51 Reply Quote 1
                                  • D
                                    DarkWolf @dudleydes
                                    last edited by 1 May 2017, 18:51

                                    @dudleydes I already checked that out but my games are not loading or the buttons of my controller doesn't work... hope this helps @tuki_cat more than me

                                    System: Raspberry 3 Model B, RetroPie 4.2.1
                                    Storage: 16gb Micro SD, 64gb USB Drive
                                    Theme: Updated NBBA

                                    Documentation solves many problems: https://retropie.org.uk/docs/

                                    D 1 Reply Last reply 1 May 2017, 18:54 Reply Quote 0
                                    • D
                                      dudleydes @DarkWolf
                                      last edited by 1 May 2017, 18:54

                                      @DarkWolf Could you give an example?

                                      D 1 Reply Last reply 1 May 2017, 18:58 Reply Quote 0
                                      • D
                                        DarkWolf @dudleydes
                                        last edited by 1 May 2017, 18:58

                                        @dudleydes I don't really know... sry
                                        I tried that some time ago and failed :/
                                        Than I switched to a wireless keyboard, but I guess I was just stupid at some point. I will give it a try once again soon. If something doesn't work I will mesage you

                                        System: Raspberry 3 Model B, RetroPie 4.2.1
                                        Storage: 16gb Micro SD, 64gb USB Drive
                                        Theme: Updated NBBA

                                        Documentation solves many problems: https://retropie.org.uk/docs/

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          tuki_cat @dudleydes
                                          last edited by 1 May 2017, 20:31

                                          @dudleydes - Hi, I have tried using ZEsarUX and it is really good for keymapping. The issue I have is that I find the emulator slow, almost like it is stuttering.

                                          I am running the emualators on a Raspberry Pi Zero so i don't know if it is to do with that, but the other spectrum emulators run fine.

                                          Any idea what stuttering could be?

                                          D 1 Reply Last reply 1 May 2017, 20:50 Reply Quote 0
                                          21 out of 27
                                          • First post
                                            21/27
                                            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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received