From: Javier Sancho Date: Sat, 23 May 2020 18:49:03 +0000 (+0200) Subject: get-event-gui-caller X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=002163db179e6409ea5744f1b8194b9f758054d8;p=guile-irrlicht.git get-event-gui-caller --- diff --git a/irrlicht.scm b/irrlicht.scm index 22cc2e0..4682a7a 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -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 diff --git a/irrlicht/irr.scm b/irrlicht/irr.scm index e105ff7..6fcd715 100644 --- a/irrlicht/irr.scm +++ b/irrlicht/irr.scm @@ -39,6 +39,10 @@ (define-class () (irr-class #:init-value "SEvent")) +(define-method (get-event-gui-caller (event )) + (let ((SGUIEvent_Caller (get-irrlicht-proc "SGUIEvent_Caller" event))) + (SGUIEvent_Caller event))) + (define-method (get-event-key (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 get-event-key get-event-key-pressed get-event-type) +(export get-event-gui-caller get-event-key get-event-key-pressed get-event-type) ;; IEventReceiver