• 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

Any control apps?

Scheduled Pinned Locked Moved Help and Support
mapping keysgamepadblock
11 Posts 2 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
    johnny5126
    last edited by 25 Mar 2018, 02:18

    Using a Pi3 and RetroPie, is there any apps that allow you to press a button on the cabinet and will return what the actual keyboard key is? Mine are attatched to a gamePadBlock.

    Pi Model 3
    Power Supply used: 5V
    RetroPie Version Used 4.4
    USB Devices connected: IPac2, Sanwa joystick

    M 1 Reply Last reply 25 Mar 2018, 02:23 Reply Quote 0
    • M
      mediamogul Global Moderator @johnny5126
      last edited by 25 Mar 2018, 02:23

      @johnny5126

      You can run evtest on the keyboard event .

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

      J 1 Reply Last reply 25 Mar 2018, 02:24 Reply Quote 0
      • J
        johnny5126 @mediamogul
        last edited by 25 Mar 2018, 02:24

        @mediamogul Is that downloadable?

        Pi Model 3
        Power Supply used: 5V
        RetroPie Version Used 4.4
        USB Devices connected: IPac2, Sanwa joystick

        M 1 Reply Last reply 25 Mar 2018, 02:25 Reply Quote 0
        • M
          mediamogul Global Moderator @johnny5126
          last edited by 25 Mar 2018, 02:25

          @johnny5126

          Better yet, it's already installed.

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

          1 Reply Last reply Reply Quote 0
          • J
            johnny5126
            last edited by 25 Mar 2018, 02:32

            @mediamogul
            How would I find and run it?

            Pi Model 3
            Power Supply used: 5V
            RetroPie Version Used 4.4
            USB Devices connected: IPac2, Sanwa joystick

            M 1 Reply Last reply 25 Mar 2018, 02:41 Reply Quote 0
            • M
              mediamogul Global Moderator @johnny5126
              last edited by mediamogul 25 Mar 2018, 02:41

              @johnny5126

              If you run:

              cat /proc/bus/input/devices
              

              You should be able to find the keyboard listing. look for the event number. Using 'event2' as an example, you'd then run.

              evtest /dev/input/event2
              

              From there, you'll be presented with the testing interface and as you press a button, the corresponding keyboard key will be noted on screen.

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

              J 2 Replies Last reply 25 Mar 2018, 02:49 Reply Quote 0
              • J
                johnny5126 @mediamogul
                last edited by 25 Mar 2018, 02:49

                @mediamogul

                Great. Thanks!

                Pi Model 3
                Power Supply used: 5V
                RetroPie Version Used 4.4
                USB Devices connected: IPac2, Sanwa joystick

                1 Reply Last reply Reply Quote 0
                • J
                  johnny5126 @mediamogul
                  last edited by 25 Mar 2018, 15:48

                  @mediamogul
                  I'm at a loss here. I'm using a gamepadblock, and it uses a number 1,2,3 etc depending what terminal the button is connected to. I'm trying to reconfigure the buttons on bluemsx and to assign button 1, 2, 3, left and right joystick button, etc to start the game to certain buttons on my cabinet, but I can't seem to find a way to do this. Am I able to?

                  Pi Model 3
                  Power Supply used: 5V
                  RetroPie Version Used 4.4
                  USB Devices connected: IPac2, Sanwa joystick

                  M 1 Reply Last reply 25 Mar 2018, 17:02 Reply Quote 0
                  • M
                    mediamogul Global Moderator @johnny5126
                    last edited by 25 Mar 2018, 17:02

                    @johnny5126 said in Any control apps?:

                    I'm using a gamepadblock

                    I'm not very familiar with the gamepadblock, but I just had a look and I don't believe it reports as a keyboard at all, but rather a USB HID-compliant controller. This being the case, you'll probably have more success getting the button codes by using jstest, which is also already installed on RetroPie. Instead of event numbers, you'll be looking for js numbers, so executing jstest would look something like

                    jstest /dev/input/js2
                    

                    You'll then be presented with another testing interface that responds to button presses. As far as lr-msxblue is concerned, it's actually a libretro, or RetroArch core, so if certain games need to be started using a keyboard key, you're only option is going to be enabling keyboard support, as detailed here. Of course, this would mean that you'd have to use a keyboard to start them, but if you wanted to put some extra effort in, it's also possible to key-map your controller, as detailed here.

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

                    J 1 Reply Last reply 25 Mar 2018, 19:12 Reply Quote 0
                    • J
                      johnny5126 @mediamogul
                      last edited by 25 Mar 2018, 19:12

                      @mediamogul

                      I guess using an Ipac2 would be a lot easier since it emulates a keyboard.

                      Pi Model 3
                      Power Supply used: 5V
                      RetroPie Version Used 4.4
                      USB Devices connected: IPac2, Sanwa joystick

                      M 1 Reply Last reply 25 Mar 2018, 19:41 Reply Quote 0
                      • M
                        mediamogul Global Moderator @johnny5126
                        last edited by 25 Mar 2018, 19:41

                        @johnny5126

                        Both have their advantages and disadvantages. If I were faced with only having one, I'd probably choose a USB HID-compliant controller interface, as it could still be key-mapped later if need be.

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

                        1 Reply Last reply Reply Quote 0
                        11 out of 11
                        • First post
                          11/11
                          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