docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct HID.HIDDeviceDescriptorBuilder

    Helper to quickly build descriptors for arbitrary HIDs.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem.HID
    Assembly: Unity.InputSystem.dll
    Syntax
    public struct HID.HIDDeviceDescriptorBuilder

    Constructors

    HIDDeviceDescriptorBuilder(GenericDesktop)

    Declaration
    public HIDDeviceDescriptorBuilder(HID.GenericDesktop usage)
    Parameters
    Type Name Description
    HID.GenericDesktop usage

    HIDDeviceDescriptorBuilder(UsagePage, int)

    Declaration
    public HIDDeviceDescriptorBuilder(HID.UsagePage usagePage, int usage)
    Parameters
    Type Name Description
    HID.UsagePage usagePage
    int usage

    Fields

    usage

    Declaration
    public int usage
    Field Value
    Type Description
    int

    usagePage

    Declaration
    public HID.UsagePage usagePage
    Field Value
    Type Description
    HID.UsagePage

    Methods

    AddElement(GenericDesktop, int)

    Declaration
    public HID.HIDDeviceDescriptorBuilder AddElement(HID.GenericDesktop usage, int sizeInBits)
    Parameters
    Type Name Description
    HID.GenericDesktop usage
    int sizeInBits
    Returns
    Type Description
    HID.HIDDeviceDescriptorBuilder

    AddElement(UsagePage, int, int)

    Declaration
    public HID.HIDDeviceDescriptorBuilder AddElement(HID.UsagePage usagePage, int usage, int sizeInBits)
    Parameters
    Type Name Description
    HID.UsagePage usagePage
    int usage
    int sizeInBits
    Returns
    Type Description
    HID.HIDDeviceDescriptorBuilder

    Finish()

    Declaration
    public HID.HIDDeviceDescriptor Finish()
    Returns
    Type Description
    HID.HIDDeviceDescriptor

    StartReport(HIDReportType, int)

    Declaration
    public HID.HIDDeviceDescriptorBuilder StartReport(HID.HIDReportType reportType, int reportId = 1)
    Parameters
    Type Name Description
    HID.HIDReportType reportType
    int reportId
    Returns
    Type Description
    HID.HIDDeviceDescriptorBuilder

    WithLogicalMinMax(int, int)

    Declaration
    public HID.HIDDeviceDescriptorBuilder WithLogicalMinMax(int min, int max)
    Parameters
    Type Name Description
    int min
    int max
    Returns
    Type Description
    HID.HIDDeviceDescriptorBuilder

    WithPhysicalMinMax(int, int)

    Declaration
    public HID.HIDDeviceDescriptorBuilder WithPhysicalMinMax(int min, int max)
    Parameters
    Type Name Description
    int min
    int max
    Returns
    Type Description
    HID.HIDDeviceDescriptorBuilder
    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)