I'm having a problem with event.get() and event.poll(). It seems that
these two functions will only return KEYUP/KEYDOWN events while the
mouse is moving over the pygame window, or moving at all while in
fullscreen mode. event.wait() works as intended.
Here's the code:
[from engine.py]
def __init_engine(self, mode, fullscreen):
pygame.init()
if fullscreen:
fullscreen = pygame.FULLSCREEN
self.screen = pygame.display.set_mode(mode, fullscreen)
[from event.py]
def __poll_pygame(self):
for e in pygame.event.get():
print e.type
Anybody have any ideas?