Hi again,
Apologies for the simplicity of this one; I'm trying to simply detect
whether the space bar has been pressed and can't seem to get it right:
from pyglet import window
from pyglet.window import key
win=window.Window()
done=False
while not done:
keys = key.KeyStateHandler()
win.push_handlers(keys)
if keys[key.SPACE]:
done=True
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---