Thanks.
From: Brian Fisher
To: pygame-users@seul.org
Sent: Wednesday, July 3, 2013 7:43 PM
Subject: Re: [pygame] Earliest access to state of keyboard?
I think the problem is that the way SDL works, since it never got the alt down
event, so it will never th
I think the problem is that the way SDL works, since it never got the alt
down event, so it will never think alt is held :(
as a test, I tried modifying a little game script to print
pygame.key.get_mods() continuously in the game loop, and it was always 0
for the alt key being held before the scri
unsubscribe pygame-users
smime.p7s
Description: S/MIME cryptographic signature
I'd like to poll the keyboard before opening a window, in order to determine if
the game should launch in Window or Fullscreen mode. This code prints 0:
pygame.event.pump();
print pygame.key.get_mods();
#then open window
pygl2d.window.init(...)
I suspected there had to be a window before t