Navigation

    Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Simulate keypress (key 5) to insert coin at Mame

    GamePad/GPIO/USB encoder
    simulate keypress key insert coin
    3
    5
    2121
    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.
    • jeffprestes
      jeffprestes last edited by

      Hi,

      I am trying to develop a small software to simulate the key 5 of keyboard to virtually insert coin to MAME games. But there's no uinput interface at /dev/input of Recalbox Linux.
      How could I do this?
      I've tried several examples with Go, Python and C and they didn't work out.

      Thanks in advance,

      -Jeff

      voljega Substring 2 Replies Last reply Reply Quote 1
      • voljega
        voljega Banned @jeffprestes last edited by

        @jeffprestes you know you just have to press select on your controller to do that right ?

        1 Reply Last reply Reply Quote 0
        • Substring
          Substring @jeffprestes last edited by

          @jeffprestes Hi,

          I guess it's rather linked to the fact we're autoconfiguring each emulators. In you case, you first need to create a uinput device, which is up to your code I'd say. But there should be pther ways, i think i've already had a successful try with python-evdev (but it's not on recalbox by default)

          Former dev - Please reply with @substring so that i am notified when you answer me
          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

          jeffprestes 1 Reply Last reply Reply Quote 0
          • jeffprestes
            jeffprestes @Substring last edited by

            @substring Thanks!
            I am visiting this page: https://python-evdev.readthedocs.io/en/latest/install.html
            Which distro should I use? Which Linux distro Recalbox is based on ?
            If it works for Python, as I am Go Developer I will try to include input.h and create a default binary for Recalbox.

            Substring 1 Reply Last reply Reply Quote 0
            • Substring
              Substring @jeffprestes last edited by

              @jeffprestes Recalbox is made with buildroot. That's some kind of LFS project aimed for embedded systems. That's why it's not using apt/rpm/whatever : recalbox doesn't sit on top of an existing OS, but is anwhole OS itself.

              Regarding go, it may be included.

              Why do you need to add a "software pad" ?

              Former dev - Please reply with @substring so that i am notified when you answer me
              Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Want to support us ?

              68
              Online

              88.3k
              Users

              26.2k
              Topics

              179.9k
              Posts

              Copyright © 2021 recalbox.com