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
    Namespace: UnityEngine.InputSystem.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.

    Events

    shouldCreateHID

    Declaration
    public static event Func<HID.HIDDeviceDescriptor, bool? > shouldCreateHID
    Event Type
    Type Description
    System.Func<HID.HIDDeviceDescriptor, System.Nullable<System.Boolean>>
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX