pxt-arcade 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -428,7 +428,7 @@ var pxsim;
428
428
  (function (pxtcore) {
429
429
  // TODO: add in support for mode, as in CODAL
430
430
  function registerWithDal(id, evid, handler, mode = 0) {
431
- pxsim.board().bus.listen(id, evid, handler);
431
+ pxsim.board().bus.listen(id, evid, handler, mode);
432
432
  }
433
433
  pxtcore.registerWithDal = registerWithDal;
434
434
  function deepSleep() {
@@ -3599,16 +3599,16 @@ var pxsim;
3599
3599
  sequencers.push(res);
3600
3600
  await res.sequencer.initAsync();
3601
3601
  res.sequencer.addEventListener("stop", () => {
3602
- pxsim.board().bus.queue(music.SEQUENCER_STOP_MESSAGE, this.id);
3602
+ pxsim.board().bus.queue(music.SEQUENCER_STOP_MESSAGE, res.id);
3603
3603
  });
3604
3604
  res.sequencer.addEventListener("state-change", () => {
3605
- pxsim.board().bus.queue(music.SEQUENCER_STATE_CHANGE_MESSAGE, this.id);
3605
+ pxsim.board().bus.queue(music.SEQUENCER_STATE_CHANGE_MESSAGE, res.id);
3606
3606
  });
3607
3607
  res.sequencer.addEventListener("looped", () => {
3608
- pxsim.board().bus.queue(music.SEQUENCER_LOOPED_MESSAGE, this.id);
3608
+ pxsim.board().bus.queue(music.SEQUENCER_LOOPED_MESSAGE, res.id);
3609
3609
  });
3610
3610
  res.sequencer.addEventListener("tick", () => {
3611
- pxsim.board().bus.queue(music.SEQUENCER_TICK_MESSAGE, this.id);
3611
+ pxsim.board().bus.queue(music.SEQUENCER_TICK_MESSAGE, res.id);
3612
3612
  });
3613
3613
  return res.id;
3614
3614
  }
package/built/sim.js CHANGED
@@ -3065,16 +3065,16 @@ var pxsim;
3065
3065
  sequencers.push(res);
3066
3066
  await res.sequencer.initAsync();
3067
3067
  res.sequencer.addEventListener("stop", () => {
3068
- pxsim.board().bus.queue(music.SEQUENCER_STOP_MESSAGE, this.id);
3068
+ pxsim.board().bus.queue(music.SEQUENCER_STOP_MESSAGE, res.id);
3069
3069
  });
3070
3070
  res.sequencer.addEventListener("state-change", () => {
3071
- pxsim.board().bus.queue(music.SEQUENCER_STATE_CHANGE_MESSAGE, this.id);
3071
+ pxsim.board().bus.queue(music.SEQUENCER_STATE_CHANGE_MESSAGE, res.id);
3072
3072
  });
3073
3073
  res.sequencer.addEventListener("looped", () => {
3074
- pxsim.board().bus.queue(music.SEQUENCER_LOOPED_MESSAGE, this.id);
3074
+ pxsim.board().bus.queue(music.SEQUENCER_LOOPED_MESSAGE, res.id);
3075
3075
  });
3076
3076
  res.sequencer.addEventListener("tick", () => {
3077
- pxsim.board().bus.queue(music.SEQUENCER_TICK_MESSAGE, this.id);
3077
+ pxsim.board().bus.queue(music.SEQUENCER_TICK_MESSAGE, res.id);
3078
3078
  });
3079
3079
  return res.id;
3080
3080
  }
@@ -4624,7 +4624,7 @@ var pxsim;
4624
4624
  (function (pxtcore) {
4625
4625
  // TODO: add in support for mode, as in CODAL
4626
4626
  function registerWithDal(id, evid, handler, mode = 0) {
4627
- pxsim.board().bus.listen(id, evid, handler);
4627
+ pxsim.board().bus.listen(id, evid, handler, mode);
4628
4628
  }
4629
4629
  pxtcore.registerWithDal = registerWithDal;
4630
4630
  function deepSleep() {