Class: AggregateInput

AggregateInput


new AggregateInput(sources)

An AggregateInput is an input device that combines multiple other inputs together.

Parameters:
Name Type Argument Description
sources Array.<Input> <optional>

The initial sources used for the aggregate.

Implements:
Source:

Methods


addSource(input)

Add a new input source inside the aggregate.

Parameters:
Name Type Description
input Input

The input to aggregate.

Source:

getState(port, code)

Returns true if any of the aggregated input should return true.

Parameters:
Name Type Description
port number

The input slot controller.

code number

The input slot code.

Implements:
Source:

pollInputs()

Simultaneously poll each aggregated input.

Implements:
Source:

removeSource(input)

Remove an input source from the aggregate.

Parameters:
Name Type Description
input Input

The input to remove.

Source: