Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    How to setup keyboard controls (via config file / ssh)

    GamePad/GPIO/USB encoder
    setup keyboard controls config file
    5
    45
    27497
    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.
    • luke
      luke last edited by

      Then just remap directions and buttons in Emulation Station and everything should be fine

      The problem is, in Emulation Station you can only assign the keyboard to one player. I cannot map some keys to player one and some to player to. When I configure the keyboard for player one and then for player two, the keyboard as a device gets assigned to player two and the mappings for player one are lost.

      voljega 1 Reply Last reply Reply Quote 0
      • voljega
        voljega Banned @luke last edited by

        @luke it's not the keybord you assign it's the controller. Did you follow the instructions on wiki ??

        1 Reply Last reply Reply Quote 0
        • luke
          luke last edited by

          @voljega The instructions don't say anything about a controller. The I-PAC2 acts as a keyboard and is recognized as a keyboard by the system.

          voljega 1 Reply Last reply Reply Quote 0
          • voljega
            voljega Banned @luke last edited by

            @luke not really it is used as a keyboard but mapped to two controllers and thus recognised as such

            1 Reply Last reply Reply Quote 0
            • luke
              luke last edited by

              I mailed the maker of the thing. He told me this is a common misconception because some dude on Reddit said it but it is wrong. It is a keyboard.

              voljega 1 Reply Last reply Reply Quote 0
              • voljega
                voljega Banned @luke last edited by

                @luke ok I'm wasting my time, if you don't wanna be helped, bye and good luck to you and the maker which apparently know better than us how it works on recalbox.

                1 Reply Last reply Reply Quote 0
                • luke
                  luke last edited by

                  Dude this is the quote I have from the maker of I-PAC, Andy Warne:

                  The pre-2015 boards don’t have the game controller device so there should not be any issue.

                  I am sorry if I have upset you but I am telling you the I-PAC is recognized as a keyboard and I have followed the instructions from the Wiki and when I do that the mappings are wrong. I steer with stick 1 and have to push buttons from the buttons of player 2, some buttons of player one and all buttons of player two are not mapped at all.

                  1 Reply Last reply Reply Quote 0
                  • luke
                    luke last edited by

                    And I cannot map 1 keyboard to 2 players using emulation station. So I am simply looking for a config file or something where I can enter the exact keys as they are mapped on my I-PAC2

                    1 Reply Last reply Reply Quote 0
                    • jonas
                      jonas last edited by

                      @luke , I have exactly the same problem. My Ipac-2 is an older PCB, bought around 2007. I can use it as a keyboard in Recalbox, but I could not find how to define separate controls for two players. And yes, I've configured my setup following the tutorial @acris mentioned.

                      My device name is something like this: usb-Cypress_I-PAC_Arcade_Control_Interface-if01-event-kbd

                      @voljega , maybe my Ipac-2 PCB is a little different from the ones used by the devs...?

                      Any ideas?

                      voljega 2 Replies Last reply Reply Quote 0
                      • voljega
                        voljega Banned @jonas last edited by

                        @jonas search the forum there's another thread about it, some guy to make his work just a few days ago

                        1 Reply Last reply Reply Quote 0
                        • luke
                          luke last edited by

                          If you find something let me know because I have the exact same problem and I cannot find anything.

                          All it would take would be an option (like a config file) to enter keyboard controls for 2 players.

                          1 Reply Last reply Reply Quote 0
                          • luke
                            luke last edited by

                            So I found the config file to set up the keyboard controls, it's in /system/.emulationstation/es_input.cfg. There are lots of entries ("inputConfig"s) for different device mappings. However, each one is for a single player only and for keyboard I can only seem to have 1 entry, so for 1 player only.

                            1 Reply Last reply Reply Quote 0
                            • luke
                              luke last edited by

                              I filed a GitHub Issue

                              Hello, I have a pre-2015 model of the I-PAC2 which is recognized as a single keyboard by the system (which is not an issue of EmulationStation, that is just how it was built). However, it seems impossible to set up 2 players using a single player with EmulationStation. I can only map one player who uses the I-PAC (recognized as a single keyboard for both players) to EmulationStation. When I want to set up the second player it removes the inputs of player one—it seems because one player can only use one device (in my case the I-PAC-"keyboard"), I cannot have 2 players use the same keyboard.

                              https://github.com/Aloshi/EmulationStation/issues/667

                              voljega 1 Reply Last reply Reply Quote 0
                              • voljega
                                voljega Banned @luke last edited by voljega

                                @luke Can you f**kin stop embarassing yourself and finally agree to follow the tutorial posted as the first response to your questions and the advices of people having a working IPAC2 on recalbox ?

                                Now you even posted an issue on a github project which doesn't have anything to do with your problems and which has been dead for at least the past two years.

                                1 Reply Last reply Reply Quote 0
                                • voljega
                                  voljega Banned @jonas last edited by

                                  @jonas https://forum.recalbox.com/topic/7279/recalbox-ipac2-2-player-control

                                  jonas 1 Reply Last reply Reply Quote 0
                                  • luke
                                    luke last edited by

                                    @luke Can you f**kin stop embarassing yourself and finally agree to follow the tutorial posted as the first response to your questions and the advices of people having a working IPAC2 on recalbox ?

                                    I told you twice I already did that

                                    voljega 1 Reply Last reply Reply Quote 0
                                    • voljega
                                      voljega Banned @luke last edited by

                                      @luke and yet you still haven't tried to confgure your controllers in the ES menu. If they don't appear this mean you didn't do it right.

                                      1 Reply Last reply Reply Quote 0
                                      • jonas
                                        jonas @voljega last edited by

                                        @voljega said in How to setup keyboard controls (via config file / ssh):

                                        @jonas https://forum.recalbox.com/topic/7279/recalbox-ipac2-2-player-control

                                        I was already aware of this post. But my iPac2 has always been configured as an USB keyboard, as default, and also mapped as default. I already added an extra button for the hotkey, as P1SW8, and all individual buttons work properly when tested in a PC running Windows. I followed the tutorial, too, and nothing changed.

                                        So, this post/thread by crimsonblaed did not add nothing I had not tried already. Unless you mean I should try using evtest?...

                                        I noticed the hardware ID in my 2007 board was different, so I believed that was the cause of my problems and also @luke 's. Our iPacs seem to be different and simply cannot use the current recalbox configuration.

                                        Regards
                                        Jonas

                                        voljega 1 Reply Last reply Reply Quote 0
                                        • voljega
                                          voljega Banned @jonas last edited by

                                          @jonas try evtest at least and see what it says

                                          jonas 1 Reply Last reply Reply Quote 0
                                          • jonas
                                            jonas @voljega last edited by

                                            @voljega , I just finished testing with evtest. Starting with a fresh 4.02 installation, following the tutorial, rebooting the Pi2 and having double-checked everything.
                                            Only the IPAC2 and an Opti-PAC were connected to the Pi2, via a standard USB hub.
                                            Here is the initial evtest screen:

                                            #########
                                            Using username "root".
                                            #evtest
                                            No device specified, trying to scan all of /dev/input/event*
                                            Available devices:
                                            /dev/input/event0: Cypress I-PAC Arcade Control Interface
                                            /dev/input/event1: Cypress I-PAC Arcade Control Interface
                                            /dev/input/event2: Ultimar Opti-PAC Trackball/Spinner Interface
                                            /dev/input/event3: Ultimar Opti-PAC Trackball/Spinner Interface
                                            /dev/input/event4: Xarcade-to-Gamepad Device 1
                                            /dev/input/event5: Xarcade-to-Gamepad Device 2
                                            /dev/input/event6: SNES-to-Keyboard Device
                                            Select the device event number [0-6]:
                                            ###########

                                            Event 0 detects all my IPAC2 input buttons, that is, P1 and P2 buttons together as a single keyboard input.
                                            Event 2 detects my Opti-PAC analog input (nevermind: connected to a spinner/horizontal mouse axis, not used by Recalbox, yet).
                                            All other events detected nothing when I move/press the controls/buttons.

                                            Back to EmulationStation / Controller Config. I find two new gamepads in the list of devices, named Xarcade-to-Gamepad 1 and 2. However, these are not usable. When redefining, there is STILL just a d**n keyboard 😞

                                            Really weird.

                                            voljega 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Want to support us ?

                                            76
                                            Online

                                            99.6k
                                            Users

                                            28.1k
                                            Topics

                                            187.1k
                                            Posts

                                            Copyright © 2021 recalbox.com