• 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

Controller in EmulationStaion too sensible, repeated input

Scheduled Pinned Locked Moved Help and Support
repeated keysemulationstatonfastcontrollers
23 Posts 2 Posters 4.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.
  • P
    pollo666 @mitu
    last edited by 27 Feb 2023, 08:37

    @mitu OK, swapped back to the new official release, compiled successfully sdl-jstest, the problem present itself with the command sdl2-jstest --event 0
    Repeated input from the same button/axis even if I press/move once, so the problem could be on how sld2 read the input?

    M 1 Reply Last reply 27 Feb 2023, 08:51 Reply Quote 0
    • M
      mitu Global Moderator @pollo666
      last edited by 27 Feb 2023, 08:51

      @pollo666 said in Controller in EmulationStaion too sensible, repeated input:

      Repeated input from the same button/axis even if I press/move once, so the problem could be on how sld2 read the input?

      Yes, it's down to how the SDL2 library handles the input, that was expected.

      Can you add the info I requested in my previous post ? I'm curious what's the polling interval requested by controller, it should be reported by the lsusb command.

      P 1 Reply Last reply 27 Feb 2023, 08:51 Reply Quote 0
      • P
        pollo666 @mitu
        last edited by 27 Feb 2023, 08:51

        @mitu lsusb -v results

        https://pastebin.com/LAZscvDx

        M 1 Reply Last reply 27 Feb 2023, 09:02 Reply Quote 0
        • M
          mitu Global Moderator @pollo666
          last edited by mitu 27 Feb 2023, 09:02

          @pollo666 This shows a 1ms reporting interval requested by the device.

          To be honest, I'm not sure there's a bug here - if the device sends an input each 1ms and SDL has time to process it, this is what happens.

          Does the same issue happens if you scroll in the runcommand launch menu or in the RetroPie-Setup script menus ? Make sure you've updated to the latest RetroPie-Setup version before trying it.

          P 1 Reply Last reply 27 Feb 2023, 09:16 Reply Quote 0
          • P
            pollo666 @mitu
            last edited by 27 Feb 2023, 09:16

            @mitu Just tested the runcommand menu, it display the same behaviour, sometimes a button press became multiple input, so I enter a submenu with "A" and instantly exit because the repeated input virtual press the "OK"

            P 1 Reply Last reply 27 Feb 2023, 09:22 Reply Quote 0
            • P
              pollo666 @pollo666
              last edited by 27 Feb 2023, 09:22

              @pollo666 Updated to the latest RetroPie-Setup, same behaviour.
              In those textual menu, RetroPie-Setup and Runcommand menu the repeated input problem seems to be less aggressive, in the graphical interface of EmulationStation is more prominent, but it could be only a feeling.

              P 1 Reply Last reply 27 Feb 2023, 09:52 Reply Quote 0
              • P
                pollo666 @pollo666
                last edited by pollo666 27 Feb 2023, 09:52

                @pollo666 I installed just for test from experimental AttractMode, it doesn't show input problem like EmulationStation.
                I didn't consider it a solution because in EmulationStation I have all images and video configured in the right path, the right theme, etc..

                M 1 Reply Last reply 27 Feb 2023, 10:13 Reply Quote 0
                • M
                  mitu Global Moderator @pollo666
                  last edited by 27 Feb 2023, 10:13

                  @pollo666 Of course it's not a solution, but if the solution involves adding code to EmulationStation (and it seems so), this will not happen so quick.

                  P 1 Reply Last reply 28 Feb 2023, 09:33 Reply Quote 0
                  • P
                    pollo666 @mitu
                    last edited by 28 Feb 2023, 09:33

                    @mitu It was a long shot, I think there isn't many people with the same problem. Definitely Attract-mode isn't a solution, not so user friendly in the configuration.

                    1 Reply Last reply Reply Quote 0
                    • M
                      mitu Global Moderator
                      last edited by 28 Feb 2023, 17:35

                      @pollo666 it's definitely something to look at, but the difficulty is reproducing the issue. I'll try to simulate something with a virtual gamepad (via xboxdrv or python-uinput), but I cannot promise anything soon.

                      Just to get a trace of the behavior, can you run evtest agains the one of the gamepads in question, press a few buttons and post the trace on pastebin.com ? If I'll try to simulate one of these 'zero delay' gamepads, I want to have a picture of the event rate and inputs.

                      P 2 Replies Last reply 1 Mar 2023, 08:20 Reply Quote 0
                      • P
                        pollo666 @mitu
                        last edited by 1 Mar 2023, 08:20

                        @mitu Yesterday I just wanted to play and I gutted the 2 arcade stick, removed the fast polling pcb and reinstalled the old not-so-fast pcb that does not cause the repeated input problem.
                        I'll try to build a temporary stick with the more recent fast pcb so I can try to save the output with evtest.

                        1 Reply Last reply Reply Quote 0
                        • P
                          pollo666 @mitu
                          last edited by pollo666 3 Mar 2023, 19:10 3 Mar 2023, 19:09

                          @mitu I have put together a franken-stick with one of the incriminated fast pcb, evtested it, here it is the output after a lot of pressing of buttons and moving of stick (dpad and analog)

                          https://pastebin.com/P4W7sArb

                          1 Reply Last reply Reply Quote 0
                          • M
                            mitu Global Moderator
                            last edited by 6 Mar 2023, 17:50

                            I've tried using xboxdrv to simulate something a faster event rate, but got nowhere.

                            The log provided also doesn't show anything special I see the input on/off events at about 1sec in-between, so the events are not reported each 2 ms, as I was thinking was the cause of the issue.

                            Not sure how to diagnose or solve this. I have an SNES adapter which claims 6ms latency and it works without issues with EmulationStation.

                            P 1 Reply Last reply 6 Mar 2023, 20:58 Reply Quote 0
                            • P
                              pollo666 @mitu
                              last edited by 6 Mar 2023, 20:58

                              @mitu OK, thanks for your efforts, for the time being I'll use different board for retropie. It wasn't just the inputlag, they have usefull feature, but I think I have found an alternative that don't seem to have problem with Emulationstation.

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