Posted 04 December 2015 - 01:28 AM
It's been a really long time since I last worked with CC, actually, LUA in general, so please don't judge me :)/>
This is just a snippet of my code (I don't think the rest is needed), but it's the thing that's causing the problems:
It literally doesn't work, the touches aren't recognised and nothing is happening. Before, the computer was shutting down by itself after about 5 seconds, but somehow that stopped now…
This is just a snippet of my code (I don't think the rest is needed), but it's the thing that's causing the problems:
mon = peripheral.wrap("right")
function awaitTouch()
while true do
local event, side, var_x, var_y = os.pullEvent("monitor_touch")
print("TOUCH")
end
end
parallel.waitForAll(awaitTouch()) --There are more threads running, but even when I disabled them, the problem stayed.
It literally doesn't work, the touches aren't recognised and nothing is happening. Before, the computer was shutting down by itself after about 5 seconds, but somehow that stopped now…