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

    SNES Controller not working inside games

    Scheduled Pinned Locked Moved Help and Support
    help
    6 Posts 2 Posters 2.0k 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.
    • S
      skeepa
      last edited by

      Hi, I'm new in retropie, sorry for my basic question.

      I've installed retropie 4.5.1 on Ubuntu 18.04.2 LTS and I've one SNES "generic" controller.
      When I start emulationstation the controller is detected, and I can surf the menu without problems, but when I entered a NES or SNES game, the controller is not detected inside the game. I can only use the laptop keyboard inside the games.

      Am I missing any basic step?

      Thanks!

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

        @skeepa Did you configure the controller in Emulationstation ? This will also configure the inputs for the emulators you use.

        S 1 Reply Last reply Reply Quote 0
        • S
          skeepa @mitu
          last edited by

          @mitu yes, the controller is automatically detected, I can setup all buttons and then navigate the menu without problems. But when I enter a game I've to use keyboard to play :(

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

            Can you check if you have a joystick configuration file in /opt/retropie/configs/all/retroarch-joypads ?
            Get a log file from the emulator(s) - use the Runcommand launch menu when you start a game, toggle verbose logging, then (after exiting the game) post the contents of /dev/shm/runcommand.log to pastebin.com so we can take a look.

            1 Reply Last reply Reply Quote 0
            • S
              skeepa
              last edited by

              I have this configuration file in /opt/retropie/configs/all/retroarch-joypads

              esteban@chimuela:/opt/retropie/configs/all/retroarch-joypads$ cat usb\ gamepad\ \ \ \ \ \ \ \ \ \ \ .cfg
              input_device = "usb gamepad           "
              input_driver = "udev"
              input_l_btn = "4"
              input_start_btn = "9"
              input_down_axis = "+1"
              input_r_btn = "5"
              input_right_axis = "+0"
              input_select_btn = "8"
              input_left_axis = "-0"
              input_up_axis = "-1"
              input_a_btn = "1"
              input_b_btn = "2"
              input_x_btn = "0"
              input_y_btn = "3"
              

              And here is the runcommand.log: https://pastebin.com/DnfspteM

              Thanks for your help

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

                It looks like your USB gamepad is detected as Player2 - the Sony Vaio keyboard is somehow detected as the 1st joypad connected:

                [INFO] [udev]: Pad #0 (/dev/input/event5) supports 0 force feedback effects.
                [INFO] [Autoconf]: 1 profiles found.
                [INFO] [Autoconf]: no profiles found for Sony Vaio Keys (4173/0).
                [INFO] [udev]: Plugged pad: usb gamepad            (2064:58625) on port #1.
                [INFO] [Autoconf]: 1 profiles found.
                [INFO] [autoconf]: selected configuration: /home/esteban/.config/retroarch/autoconfig/usb gamepad           .cfg
                [INFO] [udev]: Pad #1 (/dev/input/event3) supports 0 force feedback effects.
                

                You can use the advanced configuration editor and re-order the gamepads by setting the gamepad order for all Libretro based emulators.

                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.