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

    G&W : how to remap keys ?

    Scheduled Pinned Locked Moved Help and Support
    picaderetroarch
    10 Posts 3 Posters 1.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.
    • K
      kokobowl
      last edited by kokobowl

      Hello,

      I've built my Picade. I connect the buttons as explained in the manual (yellow, first row = 1, then from left to right and finally second row from 4 to 6). I made a layout to play. Everything is fine.

      But... I launched some G&W games and is't unplayable. The layout is unusable. For exemple, I used Egg. The game uses 4 directions : diagonally left-bottom (LB) and left-up (LU) and right-bottom (RB) and right-up (RU). Key 3 is naturally configured to be Game A and Key 6 is Game B.

      So, I create the following file

      /opt/retropie/configs/gameandwatch/retroarch.cfg
      

      I placed this into the file :

      input_remapping_directory = /opt/retropie/configs/megadrive/
      input_player1_joypad_index = 0
      input_player1_b_btn = 2
      input_player1_a_btn = 1
      input_player1_y_btn = 3
      input_player1_x_btn = 0
      input_player1_l_btn = 4
      input_player1_r_btn = 5
      input_player1_start_btn = 9
      input_player1_select_btn = 8
      

      But it doesn't change nothing...

      I'd like to create the entries for the next sequence :

      LeftB=1, RightB=2, LeftU=4 and RightU=5 ?
      

      Thank you !

      1 Reply Last reply Reply Quote 0
      • Z
        zerojay
        last edited by

        Remapping with lr-gw is unsupported.

        1 Reply Last reply Reply Quote 1
        • K
          kokobowl
          last edited by

          Argh !!! So, any option to play without twisting the fingers (and the brain too) ?

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            Is your Picade input panel detected as a keyboard or gamepad ? Have you tried using the Core Input Remapping menu in RetroArch ?

            K 1 Reply Last reply Reply Quote 1
            • K
              kokobowl @mitu
              last edited by

              @mitu Hello, I cannot remember but I think it's detected as a keyboard. I'll have a look to the GUI. The joystick makes the job but I really want to play with buttons.

              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator
                last edited by mitu

                @kokobowl said in G&W : how to remap keys ?:

                but I think it's detected as a keyboard

                If it's detected as keyboard, then the the configuration options should be

                input_player1_X=<key>
                

                where the <key> is the actual key. Any input options with _btn at the end apply to a gamepad button and not a keyboard.

                I'd advise to remove any input configuration you added in the retroarch.cfg file and leave it as before, the same modificatons can be done via input remapping from the RGUI. You can change one input at a time and check in-game how they work.

                EDIT: For a list of possible <key> values, see here.

                K 1 Reply Last reply Reply Quote 0
                • K
                  kokobowl @mitu
                  last edited by

                  @mitu I'll have a look this evening and I'll give you the informations.

                  1 Reply Last reply Reply Quote 0
                  • K
                    kokobowl
                    last edited by

                    Hello,

                    According my retroarch configuration from /opt/retropie/configs/all, my
                    picade arcade buttons are recognized as a keyboard :

                    input_player1_a = "shift"
                    input_player1_b = "ctrl"
                    input_player1_y = "alt"
                    input_player1_x = "z"
                    input_player1_start = "o"
                    input_player1_select = "i"
                    input_player1_l = "x"
                    input_player1_r = "space"
                    input_player1_left = "left"
                    input_player1_right = "right"
                    input_player1_up = "up"
                    input_player1_down = "down"
                    input_player1_l2 = "escape"
                    input_player1_r2 = "enter"
                    

                    My picade as 2 rows, from left to right bottom to up, 1 - 2 - 3 - 4 - 5 - 6

                    So, according my actual configuration, when I launch EGG game, the commands are composed of 4 buttons : LB / LU / RB and RU

                    What I need is a specific retroarch.cfg file for this game with the following settings :
                    DOWN => LB (so button = 1 = shift or down )
                    UP => LU (so button = ctrl = UP )
                    2 => RB (so button = 2 = z )
                    4 => RU (so button =4 = alt )

                    I wrote this is the config :

                    # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
                    
                    input_remapping_directory = "/opt/retropie/configs/gameandwatch/"
                    
                    input_player1_a = "down"
                    input_player1_b = "up"
                    input_player1_x = "z"
                    input_player1_y = "alt"
                    
                    
                    #include "/opt/retropie/configs/all/retroarch.cfg"
                    

                    But it doesn't work (I tested also with shift / ctrl / z / alt without success (I restarted Emulstation)

                    What's wrong ? Thank you.

                    1 Reply Last reply Reply Quote 0
                    • Z
                      zerojay
                      last edited by

                      As I said previously, you cannot remap game and watch to my knowledge.

                      1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator
                        last edited by mitu

                        From what I see, Egg has the 4 control buttons mapped like this:

                         1 (RetroPad Dpad-Up)    3 (RetroPad B)
                           
                         2 (RetroPad Dpad-Up)    4 (RetroPad X)
                        

                        To re-map them to other buttons, you need to have to have something like this in the system's retroarch.cfg

                        
                        input_remapping_directory = "/opt/retropie/configs/gameandwatch/"
                        
                        input_player1_up = "w"
                        input_player1_down = "a"
                        input_player1_b = "s"
                        input_player1_x = "d"
                        
                        #include "/opt/retropie/configs/all/retroarch.cfg"
                        

                        In the example above, I remapped all buttons to WASD on the keyboard and it seems to work fine. I think RetroPad L (left shoulder) and RetroPad R (right shoulder) are used for the Game A/Game B selection, if you wish to remap those.

                        Since this is a specific game config, you can add the input_... options in a special ROMNAME.cfg file next to the .mgw file and the input configuration will be automatically applied, only for that ROM - see https://retropie.org.uk/docs/RetroArch-Configuration/#example-per-rom-override-retroarchcfg.

                        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.