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

Re: [pygame] How to get capital letters from key event



On Friday 02 December 2005 10:11, Julien Peeters wrote:
> I am implementing a TextLabel widget with pygame but I can't get capital
> letters. I get the name of pressed key with pygame.key.name(event.key),
> but when I pressed Shift+<letter> I do not get I expect.

Check out event.unicode


     Richard

Attachment: pgpFa85cVxwq4.pgp
Description: PGP signature