Posted 12 May 2012 - 04:26 PM
Is there a way to manipulate incomming event?
so yes, how?
so yes, how?
function customEvent(filter)
while true do
e, p1, p2, p3 = os.pullEvent()
if e = "rednet_message" then
--manipulate, change e to key/char, etc.
end
if filter then
if e == filter then --should probably actually be a table or some such, I cannot remember how the filters work because I never use them!
return e, p1, p2, p3
end
else
return e, p1, p2, p3
end
end
end
os.pullEvent = customEvent