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

    query button with python

    Scheduled Pinned Locked Moved Help and Support
    buttonpython
    2 Posts 2 Posters 379 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.
    • H
      horald
      last edited by

      Hi folks,

      probably I am friggin’ blind, but unfortunately I can't find any documentation on how to query the joystick and all the action buttons of the RetroPie with Python. I can already manage a graphical display with pygame. Now I would also like to query the buttons to be able to program an interactive game. I would be very happy about any helpful hints.

      Many greetings
      Horst

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

        PyGame has the pygame.event and pygame.joystick modules to process inputs.

        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.