Posted 03 March 2013 - 02:33 AM
ComputerCraft Version Information:
Tested in SSP using CC 1.5 and CC 1.51pr3 and used ccEmu to test too. (MC 1.4.7)
Description of Bug:
If you call queueEvent before the first pullEvent, the event queue'd doesn't seem to pop up anywhere.
Steps to Reproduce Bug:
Make a startup file
You'll not see an "AA" event popping up but if you hit keys you'll see the key events.
If you however name the file something else or run it manually (not right on startup) it'll get the AA event
it'll also get the AA event if you do:
Tested in SSP using CC 1.5 and CC 1.51pr3 and used ccEmu to test too. (MC 1.4.7)
Description of Bug:
If you call queueEvent before the first pullEvent, the event queue'd doesn't seem to pop up anywhere.
Steps to Reproduce Bug:
Make a startup file
os.queueEvent("AA")
while true do
local evData = {os.pullEventRaw()} --coroutine.yield doesn't work either
print(textutils.serialize(evData))
end
You'll not see an "AA" event popping up but if you hit keys you'll see the key events.
If you however name the file something else or run it manually (not right on startup) it'll get the AA event
it'll also get the AA event if you do:
os.pullEventRaw()
os.queueEvent("AA")
while true do
local evData = {os.pullEventRaw()}
print(textutils.serialize(evData))
end
which means the issue is not calling pullEventRaw first? not sure