docs.unity3d.com
    Show / Hide Table of Contents

    Interface IInputManager

    Namespace: Unity.RenderStreaming
    Syntax
    public interface IInputManager

    Properties

    devices

    Declaration
    ReadOnlyArray<InputDevice> devices { get; }
    Property Value
    Type Description
    ReadOnlyArray<InputDevice>

    layouts

    Declaration
    IEnumerable<string> layouts { get; }
    Property Value
    Type Description
    IEnumerable<String>

    Methods

    AddDevice(String, String, String)

    Declaration
    InputDevice AddDevice(string layout, string name = null, string variants = null)
    Parameters
    Type Name Description
    String layout
    String name
    String variants
    Returns
    Type Description
    InputDevice

    GetDeviceById(Int32)

    Declaration
    InputDevice GetDeviceById(int deviceId)
    Parameters
    Type Name Description
    Int32 deviceId
    Returns
    Type Description
    InputDevice

    LoadLayout(String)

    Declaration
    InputControlLayout LoadLayout(string name)
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    InputControlLayout

    QueueEvent(InputEventPtr)

    Declaration
    void QueueEvent(InputEventPtr eventPtr)
    Parameters
    Type Name Description
    InputEventPtr eventPtr

    RegisterLayout(String, String, Nullable<InputDeviceMatcher>)

    Declaration
    void RegisterLayout(string json, string name = null, InputDeviceMatcher? matches = default(InputDeviceMatcher? ))
    Parameters
    Type Name Description
    String json
    String name
    Nullable<InputDeviceMatcher> matches

    RemoveDevice(InputDevice)

    Declaration
    void RemoveDevice(InputDevice device)
    Parameters
    Type Name Description
    InputDevice device

    RemoveLayout(String)

    Declaration
    void RemoveLayout(string name)
    Parameters
    Type Name Description
    String name

    SetDeviceUsage(InputDevice, String)

    Declaration
    void SetDeviceUsage(InputDevice device, string usage)
    Parameters
    Type Name Description
    InputDevice device
    String usage

    Events

    onDeviceChange

    Declaration
    event Action<InputDevice, InputDeviceChange> onDeviceChange
    Event Type
    Type Description
    Action<InputDevice, InputDeviceChange>

    onEvent

    Declaration
    event Action<InputEventPtr, InputDevice> onEvent
    Event Type
    Type Description
    Action<InputEventPtr, InputDevice>

    onLayoutChange

    Declaration
    event Action<string, InputControlLayoutChange> onLayoutChange
    Event Type
    Type Description
    Action<String, InputControlLayoutChange>

    onMessage

    Declaration
    event Action<InputRemoting.Message> onMessage
    Event Type
    Type Description
    Action<InputRemoting.Message>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023