Class HIDSupport | Package Manager UI website
docs.unity3d.com
    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 © 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