diff options
-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 | } |