Delegate InputDeviceFindControlLayoutDelegate
Delegate used by onFindLayoutForDevice.
Namespace: UnityEngine.InputSystem.Layouts
Assembly: Unity.InputSystem.dll
Syntax
public delegate string InputDeviceFindControlLayoutDelegate(ref InputDeviceDescription description, string matchedLayout, InputDeviceExecuteCommandDelegate executeDeviceCommand)
Parameters
Type | Name | Description |
---|---|---|
InputDeviceDescription | description | The device description supplied by the runtime or through AddDevice(InputDeviceDescription). This is passed by reference instead of by value to allow the callback to fill out fields such as capabilities on the fly based on information queried from external APIs or from the runtime. |
string | matchedLayout | Name of the layout that has been selected for the device or |
InputDeviceExecuteCommandDelegate | executeDeviceCommand | A delegate which can be invoked to execute InputDeviceCommands on the device. |
Returns
Type | Description |
---|---|
string | Return |