11 lines
186 B
Lua
11 lines
186 B
Lua
|
function kbd(kA,sI)
|
||
|
s("kbd: "..kA..","..tostring(si),function()
|
||
|
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
|