Re: [pygame] BUG keyboard events

2015-05-13 Thread Jake b
After these changes, all your `break` statements are no longer needed. First things I noticed, you are only parsing one event per game loop. You're missing a ton of events. Instead use: for event in pygame.event.get(): For `eat_cpu`, instead sleeping. Use either `time.wait` or `time.delay`

Re: [pygame] BUG keyboard events

2015-05-13 Thread Виталий
No, you're wrong.There's TWO while cycles, and second poll event until pygame.NOEVENT, so I got ALL events (I also tested with event.get(), bug the same)I know how to use time.sleep, but this bug works only when CPU is used (that's why it called exactly "eat_cpu" not sleep or delay or wait or whate