diff options
author | David Thompson <dthompson2@worcester.edu> | 2013-07-28 19:38:12 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2013-07-28 19:38:12 -0400 |
commit | 60f10e08308a6a8df543268db59f580ddc27c743 (patch) | |
tree | 3202ed51a2be4d832727fab1e51fab3cda4bd538 /examples/animation.scm | |
parent | db8d684650365a2e39e6607edcdb167fdf9f81b7 (diff) |
Update examples.
Diffstat (limited to 'examples/animation.scm')
-rw-r--r-- | examples/animation.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/animation.scm b/examples/animation.scm index 72e0b80..1e478a3 100644 --- a/examples/animation.scm +++ b/examples/animation.scm @@ -22,8 +22,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) |