]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
get-event-gui-caller
authorJavier Sancho <jsf@jsancho.org>
Sat, 23 May 2020 18:49:03 +0000 (20:49 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sat, 23 May 2020 18:49:03 +0000 (20:49 +0200)
irrlicht.scm
irrlicht/irr.scm

index 22cc2e0603357951c521e8ebf43fa3f44c9149e9..4682a7a4e2cfac4abaf1e405960231d4b10a2844 100644 (file)
@@ -92,6 +92,7 @@
                get-built-in-font
                get-color
                get-cursor-control
+               get-event-gui-caller
                get-event-key
                get-event-key-pressed
                get-event-type
index e105ff7a5565bfe16e0ccddb770e6b4a7e7616e9..6fcd7155b4fc32baeaf294b46360c825de09cc2c 100644 (file)
 (define-class <event> (<irrlicht-base>)
   (irr-class #:init-value "SEvent"))
 
+(define-method (get-event-gui-caller (event <event>))
+  (let ((SGUIEvent_Caller (get-irrlicht-proc "SGUIEvent_Caller" event)))
+    (SGUIEvent_Caller event)))
+
 (define-method (get-event-key (event <event>))
   (let ((SKeyInput_Key (get-irrlicht-proc "SKeyInput_Key" event)))
     (SKeyInput_Key event)))
@@ -51,7 +55,7 @@
   (let ((EventType (get-irrlicht-proc "EventType" event)))
     (EventType event)))
 
-(export <event> get-event-key get-event-key-pressed get-event-type)
+(export <event> get-event-gui-caller get-event-key get-event-key-pressed get-event-type)
 
 
 ;; IEventReceiver