Struct InputControlExtensions.InputEventControlCollection
Allows iterating over the controls referenced by an InputEvent via InputControlExtensions.InputEventControlEnumerator.
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.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator |