BlockWerk Documentation
🕹

Joystick 2D

Sources

Interactive 2-axis joystick. Drag the knob — also while the simulation is running —

and both outputs follow immediately. Placing a Joystick (or any interactive input

block) automatically switches the simulation to real-time pacing.

Simulate in BlockWerk

Interactive sandbox directly in your browser — zero installation, WASM-powered.

Simulate in BlockWerk →

Inputs & Outputs

Direction ID Label Type Status
← Out x X number Output
← Out y Y number Output

Parameters

Parameters Label Type Default Description
valueX X Value number 0 Current X deflection — written by the on-canvas knob. Bounded with Y to the unit circle (|(x,y)| ≤ 1).
valueY Y Value number 0 Current Y deflection — written by the on-canvas knob. Bounded with X to the unit circle (|(x,y)| ≤ 1).
gain Gain number 1 Output scale: out = deflection × gain
springReturn Spring Return boolean true Snap the knob back to (0,0) when released

Usage Examples

  • Zie de ingebouwde voorbeelden in de handleiding voor een demonstratie van dit blok.

Remarks & Best Practices

  • Configuratie: Configureer dit blok via de parameters in het paneel.

Related Components