Trigger

constructor(trigger: () -> Float, threshold: Float = 0.0f)

Parameters

trigger

the value of the trigger to watch

threshold

the amount the trigger has to be pressed before it is considered 'pressed'