[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Re: Pygame not handling keyboard tracking correctly
Jeffrey Kleykamp wrote:
Although it looks like the "KEYUP" events don't
have a unicode
That is very true, which means this won't work at all:
if event.type is KEYUP:
x = event.unicode
Also, it's a bad idea to use 'is' to compare ints. It
may appear to work in this case, but it's only working
by accident. You should do this instead:
if event.type == KEYUP:
...
--
Greg