Class HIDSupport | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class HIDSupport

    Adds support for generic HID devices to the input system.

    Inheritance
    System.Object
    HIDSupport
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.Input.Plugins.HID
    Syntax
    public static class HIDSupport
    Remarks

    Even without this module, HIDs can be used on platforms where we support HID has a native backend (Windows and OSX, at the moment). However, each supported HID requires a layout specifically targeting it as a product.

    What this module adds is the ability to turn any HID with usable controls into an InputDevice. It will make a best effort to figure out a suitable class for the device and will use the HID elements present in the HID report descriptor to populate the device.

    If there is an existing product-specific layout for a HID, it will take precedence and HIDSupport will leave the device alone.

    Methods

    Initialize()

    Add support for generic HIDs to InputSystem.

    Declaration
    public static void Initialize()
    Back to top Copyright © 2015-2018 Unity
    Generated by DocFX