@game-vir/handle-input - v15.1.1
    Preparing search index...

    Type Alias ActiveBinding

    An individual active binding. Used in readBindingsStage and ActiveBindingsMap.

    type ActiveBinding = {
        actCount: number;
        holdDuration: { milliseconds: number };
        lastActDuration: { milliseconds: number };
        value: number;
    }
    Index

    Properties

    actCount: number

    The number of times which this binding has been acted upon for the current hold. When a binding is first activated, this will be 0.

    This must be incremented by whatever process is acting on this binding, whenever it does so.

    0
    
    holdDuration: { milliseconds: number }

    The full duration for which the current binding has been active in its current direction. When an active is first pressed, this will be 0 milliseconds.

    {milliseconds: 0}
    
    lastActDuration: { milliseconds: number }

    The hold duration at which the last time this binding was acted upon. When the binding hasn't been acted on yet, this contain 0 milliseconds.

    This must be set by whatever process is acting on this binding, whenever it does so.

    {milliseconds: 0}
    
    value: number