Files
Test/Library/PackageCache/com.unity.inputsystem@2436e68c60c4/Documentation~/synthetic-controls.md
T
2026-11-01 23:39:55 +02:00

1.2 KiB

uid
uid
input-system-synthetic-controls

Synthetic controls

A synthetic control is an input control that doesn't correspond to an actual physical control on a device (for example the left, right, up, and down child controls on a StickControl). These controls synthesize input from other, actual physical controls and present it in a different way (in this example, they allow you to treat the individual directions of a stick as buttons).

The system considers synthetic controls for interactive rebinding but always favors non-synthetic controls. If both a synthetic and a non-synthetic control that are a potential match exist (for example, <Gamepad>/leftStick/x and <Gamepad>/leftStick/left), the non-synthetic control (<Gamepad>/leftStick/x) wins by default. This makes it possible to interactively bind to <Gamepad>/leftStick/left, for example, but also makes it possible to bind to <Gamepad>/leftStickPress without getting interference from the synthetic buttons on the stick.

Note

To query whether a control is synthetic, use the InputControl.synthetic property.