aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-17 07:54:51 +1000
committerDavid Walter Seikel2014-05-17 07:54:51 +1000
commit2d31ba4ff83d624270363cbb498f2bfae7419765 (patch)
tree26b4772078beef3c12f98bc0b7e401d92792c366 /src
parentMake sure the server actually gets through to things started by GuiLuaLoad(). (diff)
downloadSledjHamr-2d31ba4ff83d624270363cbb498f2bfae7419765.zip
SledjHamr-2d31ba4ff83d624270363cbb498f2bfae7419765.tar.gz
SledjHamr-2d31ba4ff83d624270363cbb498f2bfae7419765.tar.bz2
SledjHamr-2d31ba4ff83d624270363cbb498f2bfae7419765.tar.xz
Fake LSL listen() event.
Diffstat (limited to 'src')
-rw-r--r--src/love/love.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/love/love.c b/src/love/love.c
index a1ad1f6..b8b4645 100644
--- a/src/love/love.c
+++ b/src/love/love.c
@@ -529,6 +529,18 @@ static Eina_Bool _dataClient(void *data, int type, Ecore_Con_Event_Client_Data *
529 sendForth(ourGlobals->serverLuaSL, me->SID, "events.touch_start(1)"); 529 sendForth(ourGlobals->serverLuaSL, me->SID, "events.touch_start(1)");
530 } 530 }
531 } 531 }
532 else if (0 == strncmp(command, "events.listen(", 14))
533 {
534 Eina_Iterator *scripts;
535 script *me;
536
537 // TODO - For now, just send it to everyone.
538 scripts = eina_hash_iterator_data_new(ourGlobals->scripts);
539 while(eina_iterator_next(scripts, (void **) &me))
540 {
541 sendForth(ourGlobals->serverLuaSL, me->SID, command);
542 }
543 }
532 else 544 else
533 PW("Unknown command from client - %s", command); 545 PW("Unknown command from client - %s", command);
534 } 546 }