feat: Added event canceling
This commit is contained in:
@@ -33,8 +33,11 @@ void callEvent(const char* eventName, py::dict kwargs)
|
||||
{
|
||||
try
|
||||
{
|
||||
g2o.attr("callEvent")(eventName, **kwargs);
|
||||
|
||||
bool result = g2o.attr("callEvent")(eventName, **kwargs).cast<bool>();
|
||||
if (result)
|
||||
{
|
||||
Sqrat::RootTable().GetFunction("cancelEvent").Execute();
|
||||
}
|
||||
}
|
||||
catch (py::error_already_set &e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user