Class KeyboardAbstract

Collects the keys pressed on the keyboard and stores their status.

Constructors

Methods

  • Returns a balanced ternary value (either -1, 0 or 1) according to the match of the keys currently being pressed and the lists of keys given

    Parameters

    Returns number

  • Returns the value given as _active if one or, when _combo is true, all of the given keys are pressed. Returns the value given as _inactive if not.

    Type Parameters

    • T

    Parameters

    Returns T