[Horus] Lua model scripts added
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user