summaryrefslogtreecommitdiff
path: root/2d/game-loop.scm
diff options
context:
space:
mode:
Diffstat (limited to '2d/game-loop.scm')
-rw-r--r--2d/game-loop.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/2d/game-loop.scm b/2d/game-loop.scm
index a6cd669..a14459e 100644
--- a/2d/game-loop.scm
+++ b/2d/game-loop.scm
@@ -130,10 +130,11 @@ time in milliseconds that has passed since the last game update."
;; By default, pressing the escape key will pop the current scene, and
;; closing the window will quit the game.
-(default-events `((key-down . ,(lambda (key mod unicode)
+(default-events `((key-down . ,(lambda (state key mod unicode)
(when (eq? key 'escape)
(pop-scene))))
- (quit . ,quit-game)))
+ (quit . ,(lambda (state)
+ (quit-game)))))
(define handle-events
(let ((e (SDL:make-event)))