test: add test logs to test scrolling

This commit is contained in:
2025-05-06 20:15:26 -03:00
parent 6bf60c00fe
commit 3f14d32ce9
+8 -3
View File
@@ -134,7 +134,7 @@ function registerEventListener(name, listener)
end
function dispatchEvents(event, ...)
log.info("dispatching event: %s", event)
-- log.info("dispatching event: %s", event)
local eventTbl = eventListeners[event]
@@ -186,7 +186,7 @@ local logOffset = 0
-- to-do: add key handlers
function handleKey(key, isHeld)
log.info("key pressed (%d)", key)
-- log.info("key pressed (%d)", key)
if key == 265 then
logOffset = logOffset - 1
@@ -286,8 +286,13 @@ end
--[[
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 })
while true do
updateScreen()
pollEvents()
end
end