Input Forge - v0.3.1
    Preparing search index...

    Type Alias SingleInputEntry

    SingleInputEntry: RequireAtLeastOne<
        SingleInputEntryBase,
        "keyboardInput"
        | "controllerInput"
        | "systemInput"
        | "customInput",
    >

    Defines a single input binding that maps one or more input sources to a command.

    At least one input type must be defined. You can specify multiple input types to allow different input devices to trigger the same command.

    • keyboardInput - Keyboard key (use Inputs.KEYBOARD_* constants)
    • controllerInput - Gamepad button (use Inputs.CONTROLLER_* constants)
    • systemInput - System events like Inputs.SYSTEM_TICK
    • customInput - Custom input key for programmatic triggers
    const jump: SingleInputEntry = {
    keyboardInput: Inputs.KEYBOARD_SPACE,
    controllerInput: Inputs.CONTROLLER_FACE_BOTTOM,
    command: new JumpCommand()
    };