[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Key Presses



Actually a black list approach would be better rather than a white list. Can you post the approach you end up going with? Would be of interest..
Sleepy times

Good luck.

Ian Mallett wrote:
Yes, but:

key = pygame.key.get_pressed()
pygame.event.get()
if key[pygame.K_QUESTION]: print "Question"

in the event handler does nothing when I press the question mark key (whose primary (non-shift) function is "/"). The same goes for "!" (primary purpose "1") among still others.

Ian