]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
get-event-gui-type
authorJavier Sancho <jsf@jsancho.org>
Sun, 24 May 2020 07:07:39 +0000 (09:07 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sun, 24 May 2020 07:07:39 +0000 (09:07 +0200)
irrlicht.scm
irrlicht/gui.scm
irrlicht/irr.scm

index e61be55ab2ad949dcf86c65ffc0e248990c3bb52..69598fdd416f214524bcd440fc2762f2bac59c9e 100644 (file)
@@ -93,6 +93,7 @@
                get-color
                get-cursor-control
                get-event-gui-caller
+               get-event-gui-type
                get-event-key
                get-event-key-pressed
                get-event-type
index 65b24bb8d2103ed2bc5de27881543b60c7755ceb..d7dd335653cb06413035e1b6a15b993681d78cec 100644 (file)
     (getBuiltInFont gui-environment)))
 
 (define-method (get-font (gui-environment <gui-environment>) filename)
-  (let ((getFont (get-irrlicht-proc "getFont" gui-environment))
-        (font (getFont gui-environment filename)))
+  (let* ((getFont (get-irrlicht-proc "getFont" gui-environment))
+         (font (getFont gui-environment filename)))
     (if (null-object? font)
         (error "In procedure get-font: Font unavailable")
         font)))
index 6fcd7155b4fc32baeaf294b46360c825de09cc2c..2a1f78849707df5fe4d9f8a4b3d9b2b9f01c35da 100644 (file)
   (let ((SGUIEvent_Caller (get-irrlicht-proc "SGUIEvent_Caller" event)))
     (SGUIEvent_Caller event)))
 
+(define-method (get-event-gui-type (event <event>))
+  (let ((SGUIEvent_EventType (get-irrlicht-proc "SGUIEvent_EventType" event)))
+    (SGUIEvent_EventType event)))
+
 (define-method (get-event-key (event <event>))
   (let ((SKeyInput_Key (get-irrlicht-proc "SKeyInput_Key" event)))
     (SKeyInput_Key event)))
@@ -55,7 +59,8 @@
   (let ((EventType (get-irrlicht-proc "EventType" event)))
     (EventType event)))
 
-(export <event> get-event-gui-caller get-event-key get-event-key-pressed get-event-type)
+(export <event> get-event-gui-caller get-event-gui-type get-event-key get-event-key-pressed
+        get-event-type)
 
 
 ;; IEventReceiver