commit x64 compilation from lulu cause the other branch dont seems to compile properly at home

This commit is contained in:
2026-07-17 16:08:20 +02:00
parent c0f3eeb00d
commit 0efa4ee6f7
625 changed files with 117283 additions and 4426 deletions

View File

@ -0,0 +1,48 @@
/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#include "ui/ui_event_handler.h"
using namespace GS::S2D;
//------------------------------------------------------------------------------
EventHandler *EventTable::GetHandler(EventCode code) const
{
ListForeachPtr(EventHandler *, h, handler_list)
if (h->GetCode() == code)
return h;
return NULL;
}
EventHandler *EventTable::SetHandler(EventCode code, GS::Script::Object *h, GS::Script::Object *c)
{
EventHandler *handler = GetHandler(code);
if (!handler)
{
handler = new EventHandler(code);
handler_list.Add(handler);
}
handler->handler = h;
handler->context = c;
return handler;
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void EventTable::DeleteHandler(EventCode code)
{
handler_list.Remove(GetHandler(code));
}
bool EventTable::HasHandlerContext(EventCode code) const
{
EventHandler *handler = GetHandler(code);
if (!handler)
return false;
return asbool(handler);
}
//------------------------------------------------------------------------------