pygame.key.get_pressed[K_a], K_a is not defined!?

globalrev skanemupp at yahoo.se
Fri May 2 11:55:45 EDT 2008


if pygame.key.get_pressed[K_a]:
            print "Muppet"

K_a is not defined.


but yes it is. why do i get this error?

this works:
if pygame.key.get_pressed():
        print "donkey"



More information about the Python-list mailing list