]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
get-cursor-control
authorJavier Sancho <jsf@jsancho.org>
Fri, 15 May 2020 06:10:41 +0000 (08:10 +0200)
committerJavier Sancho <jsf@jsancho.org>
Fri, 15 May 2020 06:10:41 +0000 (08:10 +0200)
irrlicht.scm
irrlicht/device.scm

index 103ac607dd480c619211ef97b83d04c197a17c35..8f56946ba0da85bd2da6b6215e911e25c8e31656 100644 (file)
@@ -38,6 +38,7 @@
                create-device
                drop!
                end-scene
+               get-cursor-control
                get-file-system
                get-gui-environment
                get-mesh
index ef1b776f819da6ab64c9522bd247f055487c2c30..24b3f8b2ae2da537de781f6b59de166fd34f302e 100644 (file)
      vsync
      receiver)))
 
+(define-method (get-cursor-control (device <irrlicht-device>))
+  (let ((getCursorControl (get-irrlicht-proc "getCursorControl" device)))
+    (make <cursor-control>
+      #:irr-pointer (getCursorControl device))))
+
 (define-method (get-file-system (device <irrlicht-device>))
   (let ((getFileSystem (get-irrlicht-proc "getFileSystem" device)))
     (make <file-system>
@@ -82,5 +87,5 @@
   ((get-irrlicht-proc "setWindowCaption" device)
    device text))
 
-(export create-device get-file-system get-gui-environment get-scene-manager get-video-driver run
-        set-window-caption!)
+(export create-device get-cursor-control get-file-system get-gui-environment get-scene-manager
+        get-video-driver run set-window-caption!)