1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 08:45:24 +03:00

Cosmetics for Lua scripts (while writing the wiki page)

This commit is contained in:
bsongis 2014-03-19 15:35:56 +01:00
parent 7f5d6ad7ad
commit 7b8869f065

View file

@ -824,18 +824,18 @@ void luaInit()
// Init lua
luaL_openlibs(L);
// Push openTX libs
// Push OpenTX libs
lua_registerlib(L, "model", modelLib);
lua_registerlib(L, "lcd", lcdLib);
// Push openTX functions
// Push OpenTX functions
lua_register(L, "getTime", luaGetTime);
lua_register(L, "getVersion", luaGetVersion);
lua_register(L, "getValue", luaGetValue);
lua_register(L, "playFile", luaPlayFile);
lua_register(L, "popupInput", luaPopupInput);
// Push openTX constants
// Push OpenTX constants
lua_registerint(L, "DBLSIZE", DBLSIZE);
lua_registerint(L, "MIDSIZE", MIDSIZE);
lua_registerint(L, "SMLSIZE", SMLSIZE);
@ -844,11 +844,11 @@ void luaInit()
lua_registerint(L, "VALUE", 0);
lua_registerint(L, "SOURCE", 1);
lua_registerint(L, "REPLACE", MLTPX_REP);
lua_registerint(L, "MIX_Rud", MIXSRC_Rud);
lua_registerint(L, "MIX_Ele", MIXSRC_Ele);
lua_registerint(L, "MIX_Thr", MIXSRC_Thr);
lua_registerint(L, "MIX_Ail", MIXSRC_Ail);
lua_registerint(L, "SW_Last", SWSRC_LAST_CSW);
lua_registerint(L, "STICK_RUDDER", MIXSRC_Rud);
lua_registerint(L, "STICK_ELEVATOR", MIXSRC_Ele);
lua_registerint(L, "STICK_THROTTLE", MIXSRC_Thr);
lua_registerint(L, "STICK_AILERON", MIXSRC_Ail);
lua_registerint(L, "SWITCH_LAST", SWSRC_LAST_CSW);
lua_registerint(L, "EVT_MENU_BREAK", EVT_KEY_BREAK(KEY_MENU));
lua_registerint(L, "EVT_PAGE_BREAK", EVT_KEY_BREAK(KEY_PAGE));
lua_registerint(L, "EVT_ENTER_BREAK", EVT_KEY_BREAK(KEY_ENTER));