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

Re: [pygame] Key Presses



Ian Mallett wrote:

                if key[K_LSHIFT] or key[K_RSHIFT]:
                    name = name.upper()

You shouldn't have to do that -- a key event has a
'unicode' attribute telling you the character that it
corresponds to.

--
Greg