java.lang.Object
org.praxislive.code.userapi.Input
A field type providing a control input port. Use with @In or @AuxIn.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattach(CodeContext<?> context) Clear all Linkables from this Input.doubles()Return aLinkable.Doublefor reacting on inputs.protected voidupdateLinks(double value) protected voidupdateLinks(Value value) Return aLinkableof inputs as the provided Value subclass.<T> Linkable<T> Return aLinkableof inputs transformed by the provided converter from Value to the required type.
-
Constructor Details
-
Input
protected Input()
-
-
Method Details
-
attach
-
doubles
Return aLinkable.Doublefor reacting on inputs. None numeric inputs will be ignored.- Returns:
- Linkable.Double of input
-
valuesAs
Return aLinkableof inputs transformed by the provided converter from Value to the required type.- Type Parameters:
T-- Parameters:
converter- convert Value to required type- Returns:
- Linkable of input
-
valuesAs
Return aLinkableof inputs as the provided Value subclass. If the input Value cannot be coerced to the requested type it will be ignored.- Type Parameters:
T-- Parameters:
type- required Value subclass- Returns:
- Linkable of input
-
clearLinks
Clear all Linkables from this Input. All previously created Linkables will cease to receive input values.- Returns:
- this
-
updateLinks
protected void updateLinks(double value) - Parameters:
value-
-
updateLinks
- Parameters:
value-
-