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

Zero lag joystick controller configuration issue



  • Pi Model or other hardware: Raspberry Pi 3B V 1.2)
    Power Supply used: (2.5A from Canakit)
    RetroPie Version Used (4.4):
    Built From: Pre made SD Image on RetroPie website
    USB Devices connected: Wireless keyboard w/ trackpad and one controller.
    Controller used:Zero lag generic interface (DragonRise Generic)
    Error messages received:none
    Log found in /dev/shm/runcommand.log (if relevant):
    Emulator: MAME 2003

    Sorry, but I am yet another Newbie trying to get my system up and running , and I haven't been able to find anyone else with the same error. When I configure the buttons on my generic controller, each one registers and being configured, but neither MAME 2003 nor 2010 react to the last (10th) button that I configure. It doesn't matter what sequence I use, nor which is the last button, but I always get the same issue. Checking the

    /opt/retropie/configs/all/retroarch-joypads

    file, the button that does not respond is labelled as "input_12_btn".

    With 10 buttons, each is assigned to a digital input (A,B,X,Y, Start, Select, Left Shoulder, Right Shoulder, Left Trigger, Right Trigger) so the problem isn't that I am using a button on an analog input. If I assign 9 buttons to functions and one to a hot key all 10 behave, but is I assign 10 functions, the last one configured doesn't work. Does anyone have any idea what the issue is? I am building a MAME cabinet with a vertical screen, so I haven't tried any other emulators to see if libretro is the problem.

    Oh, and before anyone tells me I don't need so many buttons for a vertical, I grew up playing a lot of home video games with joysticks a la Atari, ie joystick in the right hand, so for my own convenience, I am only using 3 game buttons, but duplicating them- 3 on each side of the joystick, so 6 buttons plus Coin 1, Player 1 and 2 for administration.



  • @douga said in Zero lag joystick controller configuration issue:

    Pi Model or other hardware: Raspberry Pi 3B V 1.2)
    Power Supply used: (2.5A from Canakit)
    RetroPie Version Used (4.4):
    Built From: Pre made SD Image on RetroPie website
    USB Devices connected: Wireless keyboard w/ trackpad and one controller.
    Controller used:Zero lag generic interface (DragonRise Generic)
    Error messages received:none
    Log found in /dev/shm/runcommand.log (if relevant):
    Emulator: MAME 2003

    Sorry, but I am yet another Newbie trying to get my system up and running , and I haven't been able to find anyone else with the same error. When I configure the buttons on my generic controller, each one registers and being configured, but neither MAME 2003 nor 2010 react to the last (10th) button that I configure. It doesn't matter what sequence I use, nor which is the last button, but I always get the same issue. Checking the

    /opt/retropie/configs/all/retroarch-joypads

    file, the button that does not respond is labelled as "input_12_btn".

    With 10 buttons, each is assigned to a digital input (A,B,X,Y, Start, Select, Left Shoulder, Right Shoulder, Left Trigger, Right Trigger) so the problem isn't that I am using a button on an analog input. If I assign 9 buttons to functions and one to a hot key all 10 behave, but is I assign 10 functions, the last one configured doesn't work. Does anyone have any idea what the issue is? I am building a MAME cabinet with a vertical screen, so I haven't tried any other emulators to see if libretro is the problem.

    Oh, and before anyone tells me I don't need so many buttons for a vertical, I grew up playing a lot of home video games with joysticks a la Atari, ie joystick in the right hand, so for my own convenience, I am only using 3 game buttons, but duplicating them- 3 on each side of the joystick, so 6 buttons plus Coin 1, Player 1 and 2 for administration.

    I should have mentioned that I reassign the buttons to the functions I want in the emulator, but the 10th one does not register as being pressed. EmulationStation recognizes all 10 buttons, so I assume that the "issue" is with how the controller interacts with the libretro emulators.


  • Global Moderator

    @douga Do you happen to assign that last button to the Hotkey ? It could be that if you set it as Hotkey, the button itself does nothing - it only works in combination with another button.
    Have you tried skipping the Hotkey assignment in the input menu configuration and then accepting the use Select as Hotkey at the end ?



  • @mitu No, unfortunately it isn't that easy. I tried with and without a hotkey, and I get the same problem. My current setup has 9 buttons set up and one hotkey, which works but isn't what I really want to do. I have also tried it with the hotkey assigned to the select button, using it for both functions (which is what I did want to do) and that behaved properly, but I got a non-functioning game button.

    I checked with jstest, and everything behaved properly. The only issue is with whichever button assigned to "input_12_btn" in retroarch.cfg


  • Global Moderator

    @douga Hm, according to the Docs (https://retropie.org.uk/docs/RetroArch-Configuration/), RA doesn't know how to map input_12_btn, which might be an error when the mapping gets from ES input settings to the RA config file.
    Assuming you want to map A,B,X,Y, Start, Select, Left Shoulder, Right Shoulder, Left Trigger, Right Trigger, you could modify the .cfg file generated an correct the 10th button to the correct mapping (with the value determined by jstest).
    Can you post the contents of the file in /opt/retropie/configs/all/retroarch-joypads configured for the DragonRise controller and the /home/pi/.emulationstation/es_input.cfgfile ?



  • @mitu Thank, that makes sense. I had looked through that link previously multiple times, but not found anything saying that “input_12_btn” didn’t work. I will post my configs tomorrow, and manually modify the cfg file to see what happens. If I can confirm that the “input_12_btn” is being created instead of right trigger or whatever, I will report it as a bug



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.