(Sorry for the duplication of the previous message. I've hit some
obscure gmail shorcut while starting to edit the reply text and it
sent the mail...)

Pyglet's site decided to work again for me, so just a few corrections:

from pyglet.window.key import KeyStateHandler

keys = KeyStateHandler()
director.window.push_handlers(keys)

# During you're game:
if keys[key_code]:
     # do something

-- 
Kao Cardoso Félix

Página pessoal: http://www.inf.ufrgs.br/~kcfelix
Blog: http://kaofelix.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" 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/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to