Oct-26-2021, 05:30 PM
I am currently trying to program a simple pong game using pygame and thus far I have used pygame.KEYUP and pygame.KEYDOWN to control the game. I have a joystick that connects to the raspberry pi with GPIO pins and I am not sure how to program the game to use the joystick instead of the keyup and keydown controls. I cannot for the life of me figure out the imput commands to get the gpio pins to work with the joystick. Any help would be greatly appreciated.