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

    EmulationStation not picking up an arduino micro gamepad but jstest does

    Scheduled Pinned Locked Moved Help and Support
    arduinogamepadcontrolsjoystick
    2 Posts 2 Posters 588 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.
    • A
      arduinoGamepad
      last edited by

      I have made a 2 player arcade gamepad using an arduino micro and the Joystick.h library(so the arduino is emulating a joystick rather than a keyboard). However EmulationStation does not detect any any gamepads at all. But evtest and jstest both detect every button press.

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

        @arduinoGamepad Emulationstation is using SDL's joystick sub-system to handle joysticks, my guess it's not detected as such. There's a similar sdl-jstest utility -which is similar to jstest - that tests whether the joystick is detected by SDL.

        To get it detected by ES, try one of these - in order

        • add a local udev rule to force the device to appear as a joystick:
        SUBSYSTEM=="input", ATTRS{idVendor}=="<VID>", ATTRS{idProduct}=="<PID>"  ENV{ID_INPUT_JOYSTICK}="1"
        

        substituting VID and PID with the values you get for your controller from running lsusb.

        • Use Xboxdrv to make your device be seen as an Xbox driver.
        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.