1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 20:35:17 +03:00

[Horus] Lua model scripts added

This commit is contained in:
Bertrand Songis 2015-12-06 22:54:13 +01:00
parent 9d29b483c5
commit 1e2130de53
7 changed files with 49 additions and 43 deletions

View file

@ -609,9 +609,9 @@ TODO table of events/masks
static int luaKillEvents(lua_State *L)
{
uint8_t key = EVT_KEY_MASK(luaL_checkinteger(L, 1));
// prevent killing PAGE, ENT and EXIT (only in telemetry scripts)
// todo add which tpye of script is running before p_call()
if (key != KEY_EXIT && key != KEY_ENTER && key != KEY_PAGE) {
// prevent killing maskable keys (only in telemetry scripts)
// TODO add which tpye of script is running before p_call()
if (IS_MASKABLE(key)) {
killEvents(key);
}
return 0;