Show / Hide Table of Contents

    Class GetKey

    Waits for any key to be pressed and returns the key via the given delegate.

    Inheritance
    Object
    GetKey
    Implements
    ICommandAction
    Namespace: QFSW.QC.Actions
    Assembly: QFSW.QC.dll
    Syntax
    public class GetKey : ICommandAction

    Constructors

    GetKey(Action<KeyCode>)

    Declaration
    public GetKey(Action<KeyCode> onKey)
    Parameters
    Type Name Description
    Action<KeyCode> onKey

    The action to perform when a key is pressed.

    Properties

    IsFinished

    Declaration
    public bool IsFinished { get; }
    Property Value
    Type Description
    Boolean

    StartsIdle

    Declaration
    public bool StartsIdle { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Finalize(ActionContext)

    Declaration
    public void Finalize(ActionContext context)
    Parameters
    Type Name Description
    ActionContext context

    Start(ActionContext)

    Declaration
    public void Start(ActionContext context)
    Parameters
    Type Name Description
    ActionContext context

    Implements

    ICommandAction

    Extension Methods

    ArraySingleExtensions.AsArraySingle<T>(T)
    CollectionExtensions.Yield<T>(T)
    Quantum Console by QFSW
    Back to top