Sources

KeyboardInput Block

Interactive keyboard source. Click the block to arm it, then steer with the arrow keys or WASD while the simulation runs.

Open KeyboardInput in BlockWerk →

# Keyboard Input

Interactive keyboard source. Click the block to arm it, then steer with the arrow keys or WASD — also while the simulation runs. Placing a KeyboardInput (or any interactive input block) automatically switches the simulation to real-time pacing.

Outputs

| Port | Description | | ---- | ------------------------------------- | | x | -gain, 0 or +gain (left/right or A/D) | | y | -gain, 0 or +gain (down/up or S/W) |

Parameters

| Parameter | Description | | --------- | -------------------------------------------------- | | keyX | Current X key state (-1/0/1, written by the block) | | keyY | Current Y key state (-1/0/1, written by the block) | | gain | Output scale |

Usage