2017-05-16 02:26:28 +10:00
|
|
|
function kbd(kA,sI)
|
2017-06-20 04:33:29 +10:00
|
|
|
s("kbd["..TS(sI).."]: "..kA:sub(1,8),function()
|
2017-05-16 02:26:28 +10:00
|
|
|
while true do
|
|
|
|
if ev[1] == "key_down" and ev[2] == kA then
|
|
|
|
h("key",sI,ev[3],ev[4])
|
|
|
|
end
|
|
|
|
C.yield()
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
end
|