Re: How to create pygame menus
hey,
Take care with pygame.key.get_pressed() this returns the state for the keyboard, but if jaws is running it will intercept the keyboard and Pygame will not work properly. However you could use an event based solution, like:
...
events = pygame.event.get()
for event in events:
if event.type == pygame.KEYDOWN:
if event.key == K_UP:
self.move()
pygame.event.pump()
Hth,
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector