projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea3fabb
)
Keydown
author
Stefano Rivera
<stefano@rivera.za.net>
Sun, 11 May 2014 17:06:20 +0000
(19:06 +0200)
committer
Stefano Rivera
<stefano@rivera.za.net>
Sun, 11 May 2014 17:06:20 +0000
(19:06 +0200)
naja/scenes/menu.py
patch
|
blob
|
history
diff --git
a/naja/scenes/menu.py
b/naja/scenes/menu.py
index 01fe7e2baef5ad075027d10c76a246d8e5f8216b..c2e9a164ceef9edda02553242ba768743f769654 100644
(file)
--- 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.KEY
UP
and ev.key in (pgl.K_q, pgl.K_ESCAPE):
+ if ev.type == pgl.KEY
DOWN
and ev.key in (pgl.K_q, pgl.K_ESCAPE):
QuitGameEvent.post()
return
- if ev.type == pgl.KEY
UP
and ev.key is pgl.K_RETURN:
+ if ev.type == pgl.KEY
DOWN
and ev.key is pgl.K_RETURN:
credits_menu = CreditsScene()
SceneChangeEvent.post(credits_menu)
return