Class: InputState

InputState()

Represents device state for an input source.

Constructor

new InputState()

Source:

Methods

(static) fromJSON(obj) → {action.InputState}

Parameters:
Name Type Description
obj Object.<string, ?>

Object with property type and optionally parameters or pointerType, representing an action sequence or an action item.

Source:
Throws:

If actionSequence.type is not valid.

Type
InvalidArgumentError
Returns:

An InputState object for the type of the actionSequence.

Type
action.InputState

is(other) → {boolean}

Check equality of this InputState object with another.

Parameters:
Name Type Description
other InputState

Object representing an input state.

Source:
Returns:

True if this has the same type as other.

Type
boolean