Hello Hordeling,

On Wed, Jan 14, 2009 at 9:33 PM, Hordeling <[email protected]> wrote:
>
> Hello again!
>
> Reading one of the demos for reference, I've created a layer that
> enables pyglet events.
>
> However, the game quits when I press the ESCAPE key, even though I
> don't handle that.
>
> It looks like it is handled by director.
>

Did you try returning True from your on_key_press handler?  That shoud
avoid the event from propagating further.

Cheers,

-- 
Anthony Lenton

--~--~---------~--~----~------------~-------~--~----~
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