From: Stefano Rivera Date: Sun, 11 May 2014 17:06:20 +0000 (+0200) Subject: Keydown X-Git-Tag: 0.1~404 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=e6371744b346217a9348a694462354ae644fc032;p=naja.git Keydown --- diff --git a/naja/scenes/menu.py b/naja/scenes/menu.py index 01fe7e2..c2e9a16 100644 --- a/naja/scenes/menu.py +++ b/naja/scenes/menu.py @@ -23,10 +23,10 @@ class MenuScene(Scene): colour='white')) def handle_event(self, ev): - if ev.type == pgl.KEYUP and ev.key in (pgl.K_q, pgl.K_ESCAPE): + if ev.type == pgl.KEYDOWN and ev.key in (pgl.K_q, pgl.K_ESCAPE): QuitGameEvent.post() return - if ev.type == pgl.KEYUP and ev.key is pgl.K_RETURN: + if ev.type == pgl.KEYDOWN and ev.key is pgl.K_RETURN: credits_menu = CreditsScene() SceneChangeEvent.post(credits_menu) return