Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pygame with joystick
#1
Hello.
I am new to python and could use some help. 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 just got 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. Any help would be greatly appreciated.
Reply
#2
I would suggest looking into this
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  mapping joystick axis to specific 'channels' in python DashOrion 1 2,604 Jul-07-2020, 04:26 PM
Last Post: DashOrion
  Pygame*import pygame ImportError: No module named pygame CASPERHANISCH 1 9,747 Jun-05-2017, 09:50 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020