function thread1() while true do local ev = {os.pullEvent()} print("THREAD 1: "..ev[1]) end end function thread2() while true do local ev = {os.pullEvent()} print("THREAD 2: "..ev[1]) end end parallel.waitForAll(thread1(),thread2(),thread3())
Only the first function called (thread1) gets a pull event whenever I press a key like this:
What I want to be able to do is make it so both functions recieve the pull event so they can process it their own separate ways instead of just 1 function getting the pull events.
Edited by gknova61, 12 February 2014 - 05:46 AM.