[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] event.get(), event.poll() only return keyup/keydown while mouse is moving
- To: pygame-users@xxxxxxxx
- Subject: [pygame] event.get(), event.poll() only return keyup/keydown while mouse is moving
- From: Patrick Chasco <patrick@xxxxxxxxxxxxxx>
- Date: Tue, 17 May 2005 10:23:35 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Tue, 17 May 2005 11:22:37 -0400
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)
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?