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

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



In a message of Fri, 02 Dec 2005 00:11:54 +0100, Julien Peeters writes:
>Hello everybody,
>
>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. 
>
>Do have I use a FIFO ?
>
>Thanks for answers.

No.  Use pygame.key.get_mods() to find out if the Shift Key is pressed.

Laura