Table of Contents

Class InputAction

Namespace
Axolotl2D.Input
Assembly
Axolotl2D.dll

A named input value with current and frame-transition state.

public sealed class InputAction
Inheritance
InputAction
Inherited Members

Constructors

InputAction(string, Func<Vector2>)

A named input value with current and frame-transition state.

public InputAction(string name, Func<Vector2> read)

Parameters

name string
read Func<Vector2>

Properties

IsPressed

public bool IsPressed { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

Scalar

public float Scalar { get; }

Property Value

float

Value

public Vector2 Value { get; }

Property Value

Vector2

WasPressedThisFrame

public bool WasPressedThisFrame { get; }

Property Value

bool

WasReleasedThisFrame

public bool WasReleasedThisFrame { get; }

Property Value

bool