Horus version (not yet in TOOLS)

This commit is contained in:
3djc
2019-07-09 17:32:22 +02:00
parent 86c4763a93
commit 151b6b63c9
2 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -87,11 +87,11 @@ local function run(event)
if event == nil then
error("Cannot be run as a model script!")
return 2
elseif event == EVT_EXIT_BREAK then
elseif event == EVT_VIRTUAL_EXIT then
return 2
elseif event == EVT_ROT_LEFT then
elseif event == EVT_VIRTUAL_NEXT then
selectDevice(1)
elseif event == EVT_ROT_RIGHT then
elseif event == EVT_VIRTUAL_PREVIOUS then
selectDevice(-1)
end
@@ -105,7 +105,7 @@ local function run(event)
else
for i=1, #devices do
local attr = (lineIndex == i and INVERS or 0)
if event == EVT_ROT_BREAK and attr == INVERS then
if event == EVT_VIRTUAL_ENTER and attr == INVERS then
crossfireTelemetryPush(0x28, { devices[i].id, 0xEA })
return "device.lua"
end