test: add test logs to test scrolling
This commit is contained in:
@@ -134,7 +134,7 @@ function registerEventListener(name, listener)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function dispatchEvents(event, ...)
|
function dispatchEvents(event, ...)
|
||||||
log.info("dispatching event: %s", event)
|
-- log.info("dispatching event: %s", event)
|
||||||
|
|
||||||
local eventTbl = eventListeners[event]
|
local eventTbl = eventListeners[event]
|
||||||
|
|
||||||
@@ -186,7 +186,7 @@ local logOffset = 0
|
|||||||
|
|
||||||
-- to-do: add key handlers
|
-- to-do: add key handlers
|
||||||
function handleKey(key, isHeld)
|
function handleKey(key, isHeld)
|
||||||
log.info("key pressed (%d)", key)
|
-- log.info("key pressed (%d)", key)
|
||||||
|
|
||||||
if key == 265 then
|
if key == 265 then
|
||||||
logOffset = logOffset - 1
|
logOffset = logOffset - 1
|
||||||
@@ -286,6 +286,11 @@ end
|
|||||||
--[[
|
--[[
|
||||||
main loop
|
main loop
|
||||||
]]
|
]]
|
||||||
|
for i=0, 15, 1 do
|
||||||
|
log.info("some log %d", i)
|
||||||
|
log.warning("some warning %d", i)
|
||||||
|
end
|
||||||
|
|
||||||
sendToAll("SCAN", { ["hostChannel"] = HOST_CHANNEL })
|
sendToAll("SCAN", { ["hostChannel"] = HOST_CHANNEL })
|
||||||
while true do
|
while true do
|
||||||
updateScreen()
|
updateScreen()
|
||||||
|
|||||||
Reference in New Issue
Block a user