forked from hkc/cc-stuff
1
0
Fork 0
cc-stuff/augment/modules/event.lua

14 lines
362 B
Lua
Raw Normal View History

return function()
while _G._running do
local ev = { os.pullEvent() }
2024-01-09 19:42:36 +03:00
if ev[1] == "key" and ev[2] == keys.f4 then
os.queueEvent("exit")
break
elseif ev[1] == "timer" or ev[1] == "plethora_task" then
-- do nothing, just ignore
else
print(table.unpack(ev))
end
end
end