Differentiate between inc/dec and prev/next because of x9d(+) (#6890)

* Review virtual event to differentiate between prev/next and inc/dec

* Review scripts

* Replace VIRTUAL_PREVIOUS by VIRTUAL_PREV
This commit is contained in:
3djc
2019-10-04 08:39:31 +02:00
committed by Bertrand Songis
parent 8ef57e2267
commit d9a035db11
16 changed files with 66 additions and 53 deletions
@@ -455,15 +455,15 @@ local function runDevicePage(event)
end
end
elseif edit then
if event == EVT_VIRTUAL_NEXT then
if event == EVT_VIRTUAL_INC then
incrField(1)
elseif event == EVT_VIRTUAL_PREVIOUS then
elseif event == EVT_VIRTUAL_DEC then
incrField(-1)
end
else
if event == EVT_VIRTUAL_NEXT then
selectField(1)
elseif event == EVT_VIRTUAL_PREVIOUS then
elseif event == EVT_VIRTUAL_PREV then
selectField(-1)
end
end