diff options
Diffstat (limited to 'examples/coroutine.scm')
-rw-r--r-- | examples/coroutine.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/coroutine.scm b/examples/coroutine.scm index 2791944..2bf7ecb 100644 --- a/examples/coroutine.scm +++ b/examples/coroutine.scm @@ -21,8 +21,8 @@ (draw-sprite sprite)) ;; Register callbacks. -(set-render-callback (lambda () (render))) -(set-key-down-callback (lambda (key mod unicode) (key-down key mod unicode))) +(add-hook! on-render-hook (lambda () (render))) +(add-hook! on-key-down-hook (lambda (key mod unicode) (key-down key mod unicode))) ;; Open the window. (open-window window-width window-height) |