Joystick 2D
SourcesInteractive 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.
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
- Constant: Eenvoudige signaalbron