• 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

setup SNES Style USB gamepad on RetroPie 4.8.6 on PI 5- 8 Gb

Scheduled Pinned Locked Moved Help and Support
usb gamepad
9 Posts 3 Posters 599 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.
  • H
    hogger
    last edited by 1 Dec 2023, 18:15

    I have installed a faceless Raspberry Pi OS Lite and RetroPie 4.8.6 on PI 5- 8 Gb and setup SNES Style USB gamepad it works fine to navigate RetroPie menus. but not when a game is started. I have 2 gamepad config files is this normal?
    TA
    one is
    input_device = "USB Gamepad"
    input_driver = "udev"
    input_vendor_id = "121"
    input_product_id = "17"

    and the 2nd one is the mapping
    input_left_axis = "-0"
    input_left_axis_label = "Dpad Left"
    input_state_slot_decrease_axis = "-0"
    input_right_axis = "+0"
    input_right_axis_label = "Dpad Right"
    input_state_slot_increase_axis = "+0"
    input_r_btn = "5"
    input_r_btn_label = "R"
    input_save_state_btn = "5"
    input_down_axis = "+1"
    input_down_axis_label = "Dpad Down"
    input_l_btn = "4"
    input_l_btn_label = "L"
    input_load_state_btn = "4"
    input_y_btn = "3"
    input_y_btn_label = "Y"
    input_x_btn = "0"
    input_menu_toggle_btn = "0"
    input_b_btn = "2"
    input_reset_btn = "2"
    input_a_btn = "1"
    input_up_axis = "-1"
    input_up_axis_label = "Dpad Up"
    input_select_btn = "8"
    input_start_btn = "9"
    input_exit_emulator_btn = "9"
    input_enable_hotkey_btn = "9"

    1 Reply Last reply Reply Quote 0
    • W
      windg
      last edited by windg 12 Jan 2023, 19:59 1 Dec 2023, 19:04

      Do you have install the xpad driver? If not, install it and configure again the controller, i hope it works.

      My English isn't at a good level.

      H 1 Reply Last reply 1 Dec 2023, 21:19 Reply Quote 0
      • H
        hogger @windg
        last edited by hogger 12 Jan 2023, 21:25 1 Dec 2023, 21:19

        @windg said in setup SNES Style USB gamepad on RetroPie 4.8.6 on PI 5- 8 Gb:

        install the xpad driver

        I did a clean install of everything and forgot to install xpad driver
        but now that I Have installed it,I have the same results.

        when I start the emulator it says "USB game gad configured on port 1"
        but doesn't work to control the game

        thanks again

        W 1 Reply Last reply 2 Dec 2023, 06:18 Reply Quote 0
        • W
          windg @hogger
          last edited by 2 Dec 2023, 06:18

          @hogger After you install the driver did you reconfigure your controller ?

          My English isn't at a good level.

          H 1 Reply Last reply 2 Dec 2023, 17:18 Reply Quote 0
          • H
            hogger @windg
            last edited by hogger 12 Feb 2023, 17:19 2 Dec 2023, 17:18

            @windg Yes Sir. I even tired remove the existing retroarch.cfg from /opt/retropie/configs/all/retroarch.cfg and re-install RetroArch and reconfiguring the controller again as seen in another post

            1 Reply Last reply Reply Quote 0
            • M
              mitu Global Moderator
              last edited by mitu 12 Feb 2023, 19:20 2 Dec 2023, 19:19

              The problem is that you have 2 config files, both incomplete.
              The 1st one contains the VID/PID and the name of the device and it's loaded by RetroArch, but it doesn't have any mapping for the buttons/d-pad. The 2nd one contains the mappings, but doesn't have the VID/PID and it's probably not loaded by RetroArch since it does't recognize the device name. I bet the actual name is something like USB Gamepad (with multiple spaces at the end) and RetroArch looks for USB Gamepad .cfg, while your config file is USB Gamepad.cfg (no spaces befor the extension).

              What are the names of the .cfg files ? Can you run the command

              cat /proc/bus/input/devices
              

              and post the output ?

              H 3 Replies Last reply 2 Dec 2023, 19:42 Reply Quote 0
              • H
                hogger @mitu
                last edited by 2 Dec 2023, 19:42

                @mitu thanks I will take a look and post my findings.I'm just a noob that been read my A$$ off and after futher review I notice the USB drive I set up with SSH and a userconfig.txt to store my roms also now has a BIOS and configs file that contain emulationstation and retroarch config file. so what files are being used? config file from my SD OS card or the file on the USB drive?

                1 Reply Last reply Reply Quote 0
                • H
                  hogger @mitu
                  last edited by 2 Dec 2023, 20:11

                  @mitu The name of the config file are 'USB Gamepad .cfg' there is a space between Gamepad and .cfg which only contains VID/PID and NO mapping
                  The other 'USB Gamepad.cfg' which contains VID/PID and plus mapping
                  Here is the output cat /proc/bus/input/devices
                  I: Bus=0003 Vendor=1c4f Product=0002 Version=0110
                  N: Name="SIGMACHIP USB Keyboard"
                  P: Phys=usb-xhci-hcd.0-1/input0
                  S: Sysfs=/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-1/1-1:1.0/0003:1C4F:0002.0001/input/input0
                  U: Uniq=
                  H: Handlers=sysrq kbd leds event0
                  B: PROP=0
                  B: EV=120013
                  B: KEY=1000000000007 ff800000000007ff febeffdff3cfffff fffffffffffffffe
                  B: MSC=10
                  B: LED=7

                  I: Bus=0003 Vendor=1c4f Product=0002 Version=0110
                  N: Name="SIGMACHIP USB Keyboard Consumer Control"
                  P: Phys=usb-xhci-hcd.0-1/input1
                  S: Sysfs=/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-1/1-1:1.1/0003:1C4F:0002.0002/input/input1
                  U: Uniq=
                  H: Handlers=kbd event1
                  B: PROP=0
                  B: EV=1f
                  B: KEY=306ff 0 0 483ffff17aff32d bfd4444600000000 1 130c730b17c000 267bfad9415fed 9e168000004400 10000002
                  B: REL=1040
                  B: ABS=100000000
                  B: MSC=10

                  I: Bus=0003 Vendor=1c4f Product=0002 Version=0110
                  N: Name="SIGMACHIP USB Keyboard System Control"
                  P: Phys=usb-xhci-hcd.0-1/input1
                  S: Sysfs=/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-1/1-1:1.1/0003:1C4F:0002.0002/input/input2
                  U: Uniq=
                  H: Handlers=kbd event3
                  B: PROP=0
                  B: EV=13
                  B: KEY=c000 10000000000000 0
                  B: MSC=10

                  I: Bus=0019 Vendor=0001 Product=0001 Version=0100
                  N: Name="pwr_button"
                  P: Phys=gpio-keys/input0
                  S: Sysfs=/devices/platform/pwr_button/input/input4
                  U: Uniq=
                  H: Handlers=kbd event4
                  B: PROP=0
                  B: EV=3
                  B: KEY=10000000000000 0

                  I: Bus=0003 Vendor=0079 Product=0011 Version=0110
                  N: Name="USB Gamepad "
                  P: Phys=usb-xhci-hcd.0-2/input0
                  S: Sysfs=/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-2/1-2:1.0/0003:0079:0011.0004/input/input5
                  U: Uniq=
                  H: Handlers=event2 js0
                  B: PROP=0
                  B: EV=1b
                  B: KEY=3ff00000000 0 0 0 0
                  B: ABS=3
                  B: MSC=10

                  I: Bus=0003 Vendor=1c4f Product=0034 Version=0110
                  N: Name="SIGMACHIP Usb Mouse"
                  P: Phys=usb-xhci-hcd.1-2/input0
                  S: Sysfs=/devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci-hcd.1/usb3/3-2/3-2:1.0/0003:1C4F:0034.0005/input/input6
                  U: Uniq=
                  H: Handlers=mouse0 event5
                  B: PROP=0
                  B: EV=17
                  B: KEY=70000 0 0 0 0
                  B: REL=903
                  B: MSC=10

                  I: Bus=001e Vendor=0000 Product=0000 Version=0001
                  N: Name="vc4-hdmi-0"
                  P: Phys=vc4-hdmi-0/input0
                  S: Sysfs=/devices/platform/soc/107c701400.hdmi/rc/rc0/input7
                  U: Uniq=
                  H: Handlers=kbd event6
                  B: PROP=20
                  B: EV=100017
                  B: KEY=ffffc000000000 3ff 0 400000320fc200 40830c900000000 0 210300 49d2c040ec00 1e378000000000 8010000010000000
                  B: REL=3
                  B: MSC=10

                  I: Bus=001e Vendor=0000 Product=0000 Version=0001
                  N: Name="vc4-hdmi-1"
                  P: Phys=vc4-hdmi-1/input0
                  S: Sysfs=/devices/platform/soc/107c706400.hdmi/rc/rc1/input8
                  U: Uniq=
                  H: Handlers=kbd event7
                  B: PROP=20
                  B: EV=100017
                  B: KEY=ffffc000000000 3ff 0 400000320fc200 40830c900000000 0 210300 49d2c040ec00 1e378000000000 8010000010000000
                  B: REL=3
                  B: MSC=10

                  1 Reply Last reply Reply Quote 0
                  • H
                    hogger @mitu
                    last edited by 2 Dec 2023, 20:54

                    @mitu Ok Thank again you guys are awsome >this was driving me nuts. I just deleted the 'USB Gamepad .cfg' and MV (renamed) the 'USB Gamepad.cfg' to 'USB Gamepad .cfg' (with spaces before the extension). have no Idea how a got the 2 config files.but it seems to work now

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