Commit Graph

106 Commits

Author SHA1 Message Date
Stefan Seyfried
fee8c10f42 luainstance: export variables as tables
This exports arrays FONT_TYPE_foo as FONT['foo'], COL_bar als COL['bar']
and SCREEN_OFF_a as SCREEN['OFF_a'] instead of lots of single variables.

Later these could also be made dynamic if the need arises.
2014-01-19 20:57:36 +01:00
Stefan Seyfried
9bdc0309a7 luainstance: show errors from loadfile() 2014-01-19 20:57:36 +01:00
Stefan Seyfried
8dfa4c9bf8 luainstance: add minimal error reporting 2014-01-19 20:57:35 +01:00
Stefan Seyfried
eefd75537e luainstance: add simple GetInput() method
use like this in the lua script:
--
RC_home = 174
local n = neutrino()
repeat msg, data = m:GetInput(1000) until msg == RC_home
2014-01-19 20:57:35 +01:00
Stefan Seyfried
4d7e07f81f luainstance: the name is "Lua", not "LUA" 2014-01-19 20:57:35 +01:00
Stefan Seyfried
f26357e887 neutrino: add a prototype of a lua plugin interface
this is just for preliminary tests, not yet really usable
for anything useful
2014-01-19 20:57:35 +01:00