JSDoc: Class: InputState

# Class: InputState

## InputState()

Represents device state for an input source.

## Constructor

#### new InputState()

Source:
  - action.js, line 419

### 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:
  - action.js, line 458

##### 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:
  - action.js, line 434

##### Returns:

True if `this` has the same `type` as `other`.

Type
  boolean