Posted 12 January 2013 - 04:48 AM
Hey All,
First off, I want to thank all of you. I've been a long time lurker on these boards and the discussions on these forums have really helped.
I'm having an issue that seems like it should be very simple, but I can't seem to find an answer anywhere else. I'm testing a simple code to count button presses and it always seems to be off.
Not sure if this matters, but the 'physical' layout of wires is a button connected to a red alloy wire that connects to an insulated wire and then a bundled cable which connects to the computer's right side.
Am I overlooking something obvious or does the built in delay in the buttons screw up this possibility? I really need to be able to reliably register each of the user's button presses. I'd rather the user didn't have to wait for the button to pop back out each time.
Thanks for your help,
Domo
First off, I want to thank all of you. I've been a long time lurker on these boards and the discussions on these forums have really helped.
I'm having an issue that seems like it should be very simple, but I can't seem to find an answer anywhere else. I'm testing a simple code to count button presses and it always seems to be off.
local i = 0
while true do
os.pullEvent("redstone")
i = i + 1
print(i)
end
Not sure if this matters, but the 'physical' layout of wires is a button connected to a red alloy wire that connects to an insulated wire and then a bundled cable which connects to the computer's right side.
Am I overlooking something obvious or does the built in delay in the buttons screw up this possibility? I really need to be able to reliably register each of the user's button presses. I'd rather the user didn't have to wait for the button to pop back out each time.
Thanks for your help,
Domo