Input Port

An input port that can only be connected to 1 output port
Registers a signal on the target output port to listen out for any output so that an update can be sent to the attached component
Vars | |
connected_port | The connected output port |
---|---|
default | The default value of this input |
input_value | The output value of the port |
trigger | Whether this port triggers an update whenever an output is received. |
Procs | |
null_output | Signal handler proc to null the input if an atom is deleted. An update is not sent because this was not set by anything. |
receive_output | Sets a timer depending on the value of the input_receive_delay |
register_output_port | Connects the input port to the output port |
set_input | Updates the value of the input |
Var Details
connected_port

The connected output port
default

The default value of this input
input_value

The output value of the port
trigger

Whether this port triggers an update whenever an output is received.
Proc Details
null_output
Signal handler proc to null the input if an atom is deleted. An update is not sent because this was not set by anything.
receive_output
Sets a timer depending on the value of the input_receive_delay
The timer will call a proc that updates the value. Arguments:
- connected_port - The connected output port
- new_value - The new value received from the output port
register_output_port
Connects the input port to the output port
Sets the input_value and registers a signal to receive future updates. Arguments:
- port_to_register - The port to connect the input port to
set_input
Updates the value of the input
It updates the value of the input and calls input_received on the connected component Arguments:
- port_to_register - The port to connect the input port to