Lines Matching refs:tick

35    * tick. Be default this is set ot 16ms, which is one frame time
248 * Insert a new actions tick
250 * @param {Number?} duration - Minimum length of the tick in ms.
262 * Add a pause to the current tick
264 * @param {Number?} duration - Minimum length of the tick in ms.
400 let tick = actions.tickIdx;
401 if (this.actions.has(tick)) {
402 throw new Error(`Already have a pause action for the current tick`);
404 this.actions.set(tick, {type: "pause", duration: duration});
430 let tick = actions.tickIdx;
431 if (this.actions.has(tick)) {
432 tick = actions.addTick().tickIdx;
434 this.actions.set(tick, {type: "keyDown", value: key});
438 let tick = actions.tickIdx;
439 if (this.actions.has(tick)) {
440 tick = actions.addTick().tickIdx;
442 this.actions.set(tick, {type: "keyUp", value: key});
446 let tick = actions.tickIdx;
447 if (this.actions.has(tick)) {
448 tick = actions.addTick().tickIdx;
450 this.actions.set(tick, {type: "pause", duration: duration});
514 let tick = actions.tickIdx;
515 if (this.actions.has(tick)) {
516 tick = actions.addTick().tickIdx;
521 this.actions.set(tick, actionProperties);
525 let tick = actions.tickIdx;
526 if (this.actions.has(tick)) {
527 tick = actions.addTick().tickIdx;
529 this.actions.set(tick, {type: "pointerUp", button});
534 let tick = actions.tickIdx;
535 if (this.actions.has(tick)) {
536 tick = actions.addTick().tickIdx;
545 this.actions.set(tick, actionProperties);
549 let tick = actions.tickIdx;
550 if (this.actions.has(tick)) {
551 tick = actions.addTick().tickIdx;
553 this.actions.set(tick, {type: "pause", duration: duration});
579 let tick = actions.tickIdx;
580 if (this.actions.has(tick)) {
581 tick = actions.addTick().tickIdx;
583 this.actions.set(tick, {type: "scroll", x, y, deltaX, deltaY, origin});
585 this.actions.get(tick).duration = duration;
590 let tick = actions.tickIdx;
591 if (this.actions.has(tick)) {
592 tick = actions.addTick().tickIdx;
594 this.actions.set(tick, {type: "pause", duration: duration});