* @param {!Executor} executor The object to execute the configured * actions with. * @param {{async: (boolean|undefined)}} options Options for this action * sequence (see class description for details).
(executor, { async = false } = {})
| 588 | * sequence (see class description for details). |
| 589 | */ |
| 590 | constructor(executor, { async = false } = {}) { |
| 591 | /** @private @const */ |
| 592 | this.executor_ = executor |
| 593 | |
| 594 | /** @private @const */ |
| 595 | this.sync_ = !async |
| 596 | |
| 597 | /** @private @const */ |
| 598 | this.keyboard_ = new Keyboard('default keyboard') |
| 599 | |
| 600 | /** @private @const */ |
| 601 | this.mouse_ = new Pointer('default mouse', Pointer.Type.MOUSE) |
| 602 | |
| 603 | /** @private @const */ |
| 604 | this.wheel_ = new Wheel('default wheel') |
| 605 | |
| 606 | /** @private @const {!Map<!Device, !Array<!Action>>} */ |
| 607 | this.sequences_ = new Map([ |
| 608 | [this.keyboard_, []], |
| 609 | [this.mouse_, []], |
| 610 | [this.wheel_, []], |
| 611 | ]) |
| 612 | } |
| 613 | |
| 614 | /** @return {!Keyboard} the keyboard device handle. */ |
| 615 | keyboard() { |
nothing calls this directly
no outgoing calls
no test coverage detected