From 002163db179e6409ea5744f1b8194b9f758054d8 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sat, 23 May 2020 20:49:03 +0200 Subject: [PATCH] get-event-gui-caller --- irrlicht.scm | 1 + irrlicht/irr.scm | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5