Table of Contents

Class KeyMotion

Provides a callback for when Input key is triggered.

public class KeyMotion : InputKeyCodeMotion, IEchoMotion, IMotion
Inheritance
KeyMotion
Implements
Inherited Members
Extension Methods

Constructors

KeyMotion(KeyCode, Action<float>)

public KeyMotion(KeyCode keyCode, Action<float> callback)

Parameters

keyCode KeyCode
callback Action<float>

Properties

InputCall

protected override Func<KeyCode, bool> InputCall { get; }

Property Value

Func<KeyCode, bool>