lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



You might try Lanes or some other multithreading approach. These will allow you to have the event polling loop run as a separate thread, and pass things on to worker threads from there.

Otherwise, you'll need to create an event handler and event queue in the C side and read it from Lua.

-asko


steventidwell@yahoo.com kirjoitti 1.6.2009 kello 10:20:

Hi. This is my first post to the mailing list and I have a few questions. I have used some Lua before in WoW modding and am now working on a game in c++. What I would like to know is if anyone has any good explanations of how to set up event triggers using Lua. For example setting timers and checking for events sent to a c++ app from a Lua object. Any help would be greatly appreciated. Thanks!