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

Re: [pygame] Inverse function to pygame.key.name?



Ethan Glasser-Camp wrote:
We can get these strings, e.g. by using the
pygame.key.name function. but I don't know how to translate that
string back into a pygame.constant.

Why would you need to do that? Instead of translating the
string to a key number to compare with user input, why
not convert the user input to a string and compare with
that?

--
Greg