From: Javier Sancho Date: Sat, 23 May 2020 18:17:33 +0000 (+0200) Subject: set-event-receiver! X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=7ef67d269cc1f6d9f9c58583c100d761d77801d8;p=guile-irrlicht.git set-event-receiver! --- diff --git a/irrlicht.scm b/irrlicht.scm index 43f8edd..22cc2e0 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -117,6 +117,7 @@ run set-animation-speed! set-color! + set-event-receiver! set-font! set-frame-loop! set-material! diff --git a/irrlicht/device.scm b/irrlicht/device.scm index 8a64fca..e5eac5a 100644 --- a/irrlicht/device.scm +++ b/irrlicht/device.scm @@ -81,6 +81,10 @@ (define-method (run (device )) ((get-irrlicht-proc "run" device) device)) +(define-method (set-event-receiver! (device ) (receiver )) + (let ((setEventReceiver (get-irrlicht-proc "setEventReceiver" device receiver))) + (setEventReceiver device receiver))) + (define-method (set-resizable! (device ) resize) (let ((setResizable (get-irrlicht-proc "setResizable" device))) (setResizable device resize))) @@ -94,5 +98,5 @@ (yield device))) (export 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)