Posted 05 October 2012 - 02:21 AM
Alright, I really need help with this problem that I am having. I want to be able to use 2 different os.pullEvent()'s. The ones that I want to use and how I want to use them go something like this…
Ok, one works, and one doesn't. On my program that I am making, it causes the disk part to work, but when I press the key, (Should be "End") it does absolutely nothing.
Could someone help me to be able to get these to work, or something like this? Thanks, ChaddJackson12.
repeat
event, side = os.pullEvent("disk")
event, key = os.pullEvent("key")
until key == 207 or side == "right"
if key == 207 then
print("Blah")
os.sleep(2)
os.shutdown()
elseif side == "right" then
print(":(/>/>")
end
Ok, one works, and one doesn't. On my program that I am making, it causes the disk part to work, but when I press the key, (Should be "End") it does absolutely nothing.
Could someone help me to be able to get these to work, or something like this? Thanks, ChaddJackson12.