Joystick2D Block
Interactive 2-axis joystick. Drag the knob during a running simulation to steer two signals at once (e.g. roll and pitch). Spring-return snaps back to zero on release.
Open Joystick2D in BlockWerk →# Joystick 2D
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.
Outputs
| Port | Description | | ---- | ---------------------------------------- | | x | Horizontal deflection × gain | | y | Vertical deflection × gain (up-positive) |
Parameters
| Parameter | Description | | ------------ | ------------------------------------------------- | | valueX | Current X deflection (-1..1, written by the knob) | | valueY | Current Y deflection (-1..1, written by the knob) | | gain | Output scale: out = deflection × gain | | springReturn | Snap back to (0,0) on release (default on) |
Usage
- Drone attitude setpoints: x → roll loop, y → pitch loop, gain 30 for ±30°.
- Manual 2-DOF disturbance or reference injection.
- Disable springReturn for a set-and-hold trim control.