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

    Emulating keyboard with controller actions

    Scheduled Pinned Locked Moved Help and Support
    controllermapping
    7 Posts 3 Posters 1.9k 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.
    • J
      jrmymllr
      last edited by jrmymllr

      I thought this would be easy, but I'm having trouble finding anything on this. I'd like to map controller buttons to keyboard keys. Some games that were to be used with a keyboard could be used with a controller. I've already figured out it would likely involve .cfg files in /opt/retropie/configs.

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

        There's a great guide made by @mediamogul here:
        https://retropie.org.uk/forum/topic/2861/guide-advanced-controller-mappings

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

          Looks like that could alternately be used. Is there a way /opt/retropie/configs/all/retroarch-joypads/USBGamepad.cfg could be used to emulate keystrokes from a controller?

          I haven't been able to find anything, and maybe it's not possible.

          mediamogulM 1 Reply Last reply Reply Quote 0
          • mediamogulM
            mediamogul Global Moderator @jrmymllr
            last edited by mediamogul

            @jrmymllr

            Both 'joymap' and 'linux joystick mapper', as well as 'xboxdrv' can be used to map keyboard keys to a controller, but there's no way to key-map by altering /opt/retropie/configs/all/retroarch-joypads/USBGamepad.cfg.

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

            J 1 Reply Last reply Reply Quote 2
            • J
              jrmymllr @mediamogul
              last edited by jrmymllr

              @mediamogul
              hey thanks for the reply. Would you say any of these methods are easier than the rest, that also allows for customized mapping per emulator, or preferably, per game?

              mediamogulM 1 Reply Last reply Reply Quote 0
              • mediamogulM
                mediamogul Global Moderator @jrmymllr
                last edited by

                @jrmymllr

                I've only taken the time to learn xboxdrv because it seems to be the most versatile. Judging by a quick look, 'joymap' seems to be the easiest.

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

                J 1 Reply Last reply Reply Quote 1
                • J
                  jrmymllr @mediamogul
                  last edited by

                  @mediamogul

                  I may stick with using your xboxdrv guide for this task since it's already part of Retropie. Getting joymap compiled and configured might prove to be a huge headache.

                  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.