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

    Type Alias AxesInputEntry

    AxesInputEntry: RequireAtLeastOne<
        AxesInputEntryBase,
        "keyboardAxes"
        | "controllerStick"
        | "customAxesInput",
    >

    Defines an axes input binding that maps analog inputs to an AxesCommand.

    At least one input type must be defined. Use this for movement, camera control, or any input that needs X/Y axis values.

    • keyboardAxes - Maps 4 keyboard keys to axis values (WASD, arrow keys, etc.)
    • controllerStick - Gamepad analog stick (use Inputs.CONTROLLER_LEFT_STICK or RIGHT_STICK)
    • customAxesInput - Custom axes input for virtual joysticks
    const movement: AxesInputEntry = {
    keyboardAxes: {
    vertical: { up: 'w', down: 's' },
    horizontal: { left: 'a', right: 'd' }
    },
    controllerStick: Inputs.CONTROLLER_LEFT_STICK,
    command: new MoveCommand()
    };