screenblank works with the new rc system now, rejoyce

This commit is contained in:
Izaya 2020-03-26 17:43:22 +11:00
parent 9eec6bf193
commit 67de47ebd4

View File

@ -1,7 +1,9 @@
local lastkey = computer.uptime() local lastkey = computer.uptime()
local state = true local state = true
local delay = 60 local delay = 60
while true do function start()
return os.spawn(function()
while true do
tEv = {coroutine.yield()} tEv = {coroutine.yield()}
if tEv[1] == "key_down" then if tEv[1] == "key_down" then
lastkey = computer.uptime() lastkey = computer.uptime()
@ -18,4 +20,6 @@ while true do
end end
state = false state = false
end end
end
end,"screenblank")
end end