Interface CreateInputPressHandlerOptions

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

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

Properties

condition?: (() => boolean)

Callback to determine if the input should run or not

Type declaration

    • (): boolean
    • Returns boolean

Returns

Boolean in which false will skip the input from being processed

inputCollectionID: string
onInput?: (() => void)

Type declaration

    • (): void
    • Returns void

onRelease?: (() => void)

Type declaration

    • (): void
    • Returns void