docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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 null if no matching layout could be found. Matching is determined from the InputDeviceMatchers for layouts registered in the system.

    InputDeviceExecuteCommandDelegate executeDeviceCommand

    A delegate which can be invoked to execute InputDeviceCommands on the device.

    Returns
    Type Description
    string

    Return null or an empty string to indicate that

    See Also

    onFindLayoutForDevice
    RegisterLayoutBuilder(Func<InputControlLayout>, string, string, InputDeviceMatcher?)
    InputControlLayout
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)