Layout formats
Add new layouts using the approach that fits how you author and register devices in your project.
You can define layouts in three ways: as C# types, as JSON, or with the layout builder API at runtime. Use C# or JSON when your layout is fixed at build time. Use the layout builder when device structure is discovered dynamically, such as for HID devices.
| Topic | Description |
|---|---|
| Add a layout from C# | Register a layout using C# classes derived from InputControl or InputDevice. |
| Add a layout from JSON | Register a layout from JSON to store or load definitions separately from your code. |
| Add a layout using Layout Builder | Build a layout at runtime with the layout builder API. |