docs.unity3d.com
    Show / Hide Table of Contents

    Struct InputControlExtensions.InputEventControlCollection

    Allows iterating over the controls referenced by an InputEvent via InputControlExtensions.InputEventControlEnumerator.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem
    Syntax
    public struct InputEventControlCollection : IEnumerable<InputControl>, IEnumerable

    Properties

    eventPtr

    The event being iterated over. A StateEvent or DeltaStateEvent.

    Declaration
    public readonly InputEventPtr eventPtr { get; }
    Property Value
    Type Description
    InputEventPtr

    Methods

    GetEnumerator()

    Enumerate the controls in the event.

    Declaration
    public InputControlExtensions.InputEventControlEnumerator GetEnumerator()
    Returns
    Type Description
    InputControlExtensions.InputEventControlEnumerator

    An enumerator.

    Explicit Interface Implementations

    IEnumerable<InputControl>.GetEnumerator()

    Declaration
    IEnumerator<InputControl> IEnumerable<InputControl>.GetEnumerator()
    Returns
    Type Description
    IEnumerator<InputControl>
    Implements
    IEnumerable<T>.GetEnumerator()

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    IEnumerator
    Implements
    IEnumerable.GetEnumerator()

    See Also

    EnumerateControls(InputEventPtr, InputControlExtensions.Enumerate, InputDevice, Single)
    EnumerateChangedControls(InputEventPtr, InputDevice, Single)
    Back to top
    Terms of use
    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