docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IInputManager

    Namespace: Unity.RenderStreaming.InputSystem
    Assembly: Unity.RenderStreaming.dll
    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

    AddDeviceUsage(InputDevice, string)

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

    GetDeviceById(int)

    Declaration
    InputDevice GetDeviceById(int deviceId)
    Parameters
    Type Name Description
    int 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

    RegisterControlLayout(string, string, bool)

    Declaration
    void RegisterControlLayout(string json, string name = null, bool isOverride = false)
    Parameters
    Type Name Description
    string json
    string name
    bool isOverride

    RemoveDevice(InputDevice)

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

    RemoveDeviceUsage(InputDevice, string)

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

    RemoveLayout(string)

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

    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>
    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)