|
@@ -72,6 +72,15 @@ int INV_RunCode(laOperator* a, laEvent* e){
|
|
|
if(!Data.Code->Ptr) return LA_FINISHED;
|
|
|
if(luaL_loadstring(L, Data.Code->Ptr)){ luaerr("luaL_loadstring() error:") };
|
|
|
if(lua_pcall(L, 0, 0, 0)){ luaerr("lua_pcall() error:") };
|
|
|
+
|
|
|
+ lua_pushvalue(L,LUA_GLOBALSINDEX);
|
|
|
+ lua_pushnil(L);
|
|
|
+ while (lua_next(L,-2) != 0) {
|
|
|
+ char* name = lua_tostring(L,-2);
|
|
|
+ lua_pop(L,1);
|
|
|
+ printf("%s\n",name);
|
|
|
+ }
|
|
|
+ lua_pop(L,1);
|
|
|
return LA_FINISHED;
|
|
|
}
|
|
|
|
|
@@ -97,6 +106,7 @@ int main(int argc, char *argv[]){
|
|
|
laWindow* w = laDesignWindow(-1,-1,600,600);
|
|
|
laLayout* l = laDesignLayout(w,"My Layout");
|
|
|
laCreatePanel(l->FirstBlock,"my_panel");
|
|
|
+ laCreatePanel(l->FirstBlock,"LAUI_input_mapper");
|
|
|
|
|
|
laStartWindow(w);
|
|
|
laMainLoop();
|