Vixen
02b45cc4
csharp
public readonly record struct InputActionContext

What a listener is handed when an action changes phase.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (5)

  • public InputAction Action

    The action.

  • public InputActionPhase Phase

    Which change this is.

  • public Vector2 Value

    The action's value at that moment.

  • public float Magnitude

    How far from rest it is.

  • public InputBinding? Binding

    Which binding caused it, or .

Methods (2)

  • public InputActionContext(InputAction Action, InputActionPhase Phase, Vector2 Value, float Magnitude, InputBinding? Binding)

    What a listener is handed when an action changes phase.

  • public T ReadValue<T>() where T : struct

    Reads the value as the shape the caller expects.

Used by (2)

  • InputActionVixen.Input
  • InputActionTestsVixen.Input.Tests