Phil Hassey wrote:
Hi,
I noticed that when I used the sample:
http://www.pygame.org/wiki/toggle_fullscreen?parent=CookBook
To control my fullscreen toggling, after I went into full screen, I
could often just press enter (without the ALT) to get back to windowed
mode. After some playing around, it appears that either pygame or SDL
misses the ALT key-up event while switching into fullscreen mode... I
was able to reproduce this issue on both a linux and win32 system.
Any suggestions? Am I doing something wrong in my toggle_fullscreen code?
if you're using a separate variable to hold the state of the ALT key,
you could just
reset it to false whenever someone goes fullscreen,
and then do a get_pressed or whatever to find out if alt actually still
is pressed
once you're fullscreened.
Thanks!
Phil
------------------------------------------------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.
<http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/handraisers>