diff options
author | David Walter Seikel | 2014-05-17 07:54:51 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-17 07:54:51 +1000 |
commit | 2d31ba4ff83d624270363cbb498f2bfae7419765 (patch) | |
tree | 26b4772078beef3c12f98bc0b7e401d92792c366 | |
parent | Make sure the server actually gets through to things started by GuiLuaLoad(). (diff) | |
download | SledjHamr-2d31ba4ff83d624270363cbb498f2bfae7419765.zip SledjHamr-2d31ba4ff83d624270363cbb498f2bfae7419765.tar.gz SledjHamr-2d31ba4ff83d624270363cbb498f2bfae7419765.tar.bz2 SledjHamr-2d31ba4ff83d624270363cbb498f2bfae7419765.tar.xz |
Fake LSL listen() event.
-rw-r--r-- | src/love/love.c | 12 |
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 | } |