Initial commit
This commit is contained in:
10
bricks/inputs/keyboard-update.lua
Normal file
10
bricks/inputs/keyboard-update.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
return function(gate)
|
||||
if #gate.queueBits~=0 then
|
||||
local bit = table.remove(gate.queueBits, #gate.queueBits)
|
||||
gate.ports[1]:setstate(bit)
|
||||
gate:queue(1)
|
||||
else
|
||||
gate.ports[1]:setstate(false)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user