fixed a bug in the spawning of keyboard drivers

This commit is contained in:
Izaya 2017-05-23 14:39:28 +00:00
parent 507fe49984
commit 5d94afe751

View File

@ -1,5 +1,5 @@
function kbd(kA,sI) function kbd(kA,sI)
s("kbd: "..kA:sub(1,8)..","..tostring(si),function() s("kbd: "..kA:sub(1,8)..","..tostring(sI),function()
while true do while true do
if ev[1] == "key_down" and ev[2] == kA then if ev[1] == "key_down" and ev[2] == kA then
h("key",sI,ev[3],ev[4]) h("key",sI,ev[3],ev[4])