docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SetSamplingFrequencyCommand

    For a device that is sampled periodically, set the frequency at which the device is sampled.

    Implements
    IInputDeviceCommandInfo
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem.LowLevel
    Assembly: Unity.InputSystem.dll
    Syntax
    public struct SetSamplingFrequencyCommand : IInputDeviceCommandInfo

    Fields

    baseCommand

    Declaration
    public InputDeviceCommand baseCommand
    Field Value
    Type Description
    InputDeviceCommand

    frequency

    Declaration
    public float frequency
    Field Value
    Type Description
    float

    Properties

    Type

    Declaration
    public static FourCC Type { get; }
    Property Value
    Type Description
    FourCC

    typeStatic

    The data format identifier of the device command as a FourCC code.

    Declaration
    public FourCC typeStatic { get; }
    Property Value
    Type Description
    FourCC

    Methods

    Create(float)

    Declaration
    public static SetSamplingFrequencyCommand Create(float frequency)
    Parameters
    Type Name Description
    float frequency
    Returns
    Type Description
    SetSamplingFrequencyCommand

    Implements

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