This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
3istee's profile picture

The "redstone" event (os.pullEvent)

Started by 3istee, 13 March 2012 - 04:43 PM
3istee #1
Posted 13 March 2012 - 05:43 PM
Hey,

I think the redstone event which os.pullEvent returns should have more parameters,
the side and if it was switched on or off.
This would make many things easier and less buggy,
because at the moment when you want to know if a redstone input on the left side (just for example)
turns on, you have to ask if any side got powered, and ask if the side is powered, too.
This could result in bugs because it is possible that this side already powered before.
Espen #2
Posted 13 March 2012 - 06:03 PM
You can implement this yourself, take a look at this topic: http://www.computercraft.info/forums2/index.php?/topic/416-bundles-cables-do-not-generate-events

To prevent any misunderstanding:
Th linked topic is about the bundled cables from RedPower, but the principle that I'm referring to, applies to vanilla redstone too.
Edited on 13 March 2012 - 05:05 PM