]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
set-event-receiver!
authorJavier Sancho <jsf@jsancho.org>
Sat, 23 May 2020 18:17:33 +0000 (20:17 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sat, 23 May 2020 18:17:33 +0000 (20:17 +0200)
irrlicht.scm
irrlicht/device.scm

index 43f8edd62f372d3112bec10586bf5dbe89a5cb5a..22cc2e0603357951c521e8ebf43fa3f44c9149e9 100644 (file)
                run
                set-animation-speed!
                set-color!
+               set-event-receiver!
                set-font!
                set-frame-loop!
                set-material!
index 8a64fcab17b465e756e7f0c724cd2e23c86f51af..e5eac5a5b460c616d51ebc4b58fd02374ad58ba1 100644 (file)
 (define-method (run (device <irrlicht-device>))
   ((get-irrlicht-proc "run" device) device))
 
+(define-method (set-event-receiver! (device <irrlicht-device>) (receiver <event-receiver>))
+  (let ((setEventReceiver (get-irrlicht-proc "setEventReceiver" device receiver)))
+    (setEventReceiver device receiver)))
+
 (define-method (set-resizable! (device <irrlicht-device>) resize)
   (let ((setResizable (get-irrlicht-proc "setResizable" device)))
     (setResizable device resize)))
@@ -94,5 +98,5 @@
     (yield device)))
 
 (export <irrlicht-device> create-device get-cursor-control get-file-system get-gui-environment
-        get-scene-manager get-timer get-video-driver is-window-active? run set-resizable!
-        set-window-caption! yield-device)
+        get-scene-manager get-timer get-video-driver is-window-active? run set-event-receiver!
+        set-resizable! set-window-caption! yield-device)