#include <libguile.h>
#include "event-receiver.h"
+#include "gui-element.h"
#include "gsubr.h"
#include "keycodes.h"
#include "wrapped.h"
{
init_event_receiver_type ();
init_event_type ();
+ DEFINE_GSUBR ("event-gui-caller", 1, 0, 0, event_gui_caller);
DEFINE_GSUBR ("event-key-input-key", 1, 0, 0, event_key_input_key);
DEFINE_GSUBR ("event-key-input-pressed", 1, 0, 0, event_key_input_pressed);
DEFINE_GSUBR ("event-type", 1, 0, 0, event_type);
init_event_type, event_p,
wrap_event, unwrap_event);
+ SCM
+ event_gui_caller (SCM event)
+ {
+ return wrap_gui_element (unwrap_event (event)->GUIEvent.Caller);
+ }
+
SCM
event_key_input_key (SCM event)
{
DECLARE_WRAPPED_TYPE (irr::SEvent*, init_event_type,
event_p, wrap_event, unwrap_event);
+ SCM
+ event_gui_caller (SCM event);
+
SCM
event_key_input_key (SCM event);