* * Updates the internal state of the key. Accepts a range between 0-2. Will set key state to 0 if nothing is passed. * @param {0 | 1 | 2} [state=0] * @memberof Key
(state = 0)
| 30 | * @memberof Key |
| 31 | */ |
| 32 | updateState(state = 0) { |
| 33 | if (state < 3 && state > -1) { |
| 34 | this._state = state; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Calls the relevant action for the current state of the key. |
no outgoing calls
no test coverage detected