forked from hkc/cc-stuff
17 lines
449 B
Lua
17 lines
449 B
Lua
-- x-run: cd .. && scp -r ./* pneumatic-pump:htdocs/cc/augment/
|
|
|
|
return function()
|
|
while _G._running do
|
|
local ev = { os.pullEvent() }
|
|
if ev[1] == "key" and ev[2] == keys.q 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
|
|
os.sleep(0.05)
|
|
end
|
|
end
|