[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] Odd key code behaviour



I just had a lot of trouble with K_UP... K_TAB worked just fine, but
not K_UP. Then I started to suspect that the trouble was that I was
using "event.key is K_UP" and not "event.key == K_UP". The latter is
safer, of course, but I assumed that K_UP had been used in generating
the event... After all, "event.key is K_TAB" worked just fine.

What is the difference between the two? Good/bad luck? :)

--
Magnus Lie Hetland                                  The Anygui Project
http://hetland.org                                  http://anygui.org
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org