OC-MultICE/modules/applications/evproxy-client.lua

18 lines
339 B
Lua
Raw Normal View History

2017-04-20 19:03:06 +10:00
function nshc(evPP,nid)
write("\f")
2017-04-20 19:03:06 +10:00
while true do
if ev[1] == "net_msg" then
2017-04-23 19:05:16 +10:00
local V,msg=false,tostring(ev[4])
2017-04-20 19:03:06 +10:00
if ev[3] == evPP and ev[2] == nid then
if msg:sub(1,3) == "dis" then
h("display",msg:sub(4))
end
end
elseif ev[1] == "key_down" then
ns(nid,evPP,"key"..tostring(ev[3]))
end
C.yield()
end
end