docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InputManager

    Inheritance
    object
    InputManager
    Implements
    IInputManager
    Namespace: Unity.RenderStreaming.InputSystem
    Assembly: Unity.RenderStreaming.dll
    Syntax
    public abstract class InputManager : IInputManager

    Properties

    devices

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

    layouts

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

    Methods

    AddDevice(string, string, string)

    Declaration
    public virtual 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
    public virtual void AddDeviceUsage(InputDevice device, string usage)
    Parameters
    Type Name Description
    InputDevice device
    string usage

    GetDeviceById(int)

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

    LoadLayout(string)

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

    QueueEvent(InputEventPtr)

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

    RegisterControlLayout(string, string, bool)

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

    RemoveDevice(InputDevice)

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

    RemoveDeviceUsage(InputDevice, string)

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

    RemoveLayout(string)

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

    Events

    onDeviceChange

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

    onEvent

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

    onLayoutChange

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

    onMessage

    Declaration
    public virtual event Action<InputRemoting.Message> onMessage
    Event Type
    Type Description
    Action<InputRemoting.Message>

    Implements

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