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
-
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 -
PyGame has the pygame.event and pygame.joystick modules to process inputs.
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.