Interface CreateInputPressHandlerOptions

Defines options for InputPressHandlers, which mainly is about what inputs to press and the callbacks

interface CreateInputPressHandlerOptions {
    condition?: () => boolean;
    inputCollectionID: Scriptable<string>;
    onInput?: () => void;
    onRelease?: () => void;
}

Properties

condition?: () => boolean

Callback to determine if the input should run or not

Type declaration

    • (): boolean
    • Returns boolean

      Boolean in which false will skip the input from being processed

inputCollectionID: Scriptable<string>
onInput?: () => void
onRelease?: () => void