pxt-arcade 2.0.60 → 2.0.61
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.
- package/built/sim.js +23 -1
- package/built/target.js +1 -1
- package/built/target.json +1 -1
- package/built/targetlight.js +1 -1
- package/built/targetlight.json +1 -1
- package/package.json +3 -3
package/built/sim.js
CHANGED
|
@@ -696,8 +696,10 @@ var pxsim;
|
|
|
696
696
|
}
|
|
697
697
|
kill() {
|
|
698
698
|
super.kill();
|
|
699
|
-
if (this.gameplayer)
|
|
699
|
+
if (this.gameplayer) {
|
|
700
|
+
this.gameplayer.setCursorVisible(true);
|
|
700
701
|
this.gameplayer.dispose();
|
|
702
|
+
}
|
|
701
703
|
pxsim.Keyboard.cancelTextPrompt();
|
|
702
704
|
}
|
|
703
705
|
}
|
|
@@ -776,6 +778,15 @@ function isSafari() {
|
|
|
776
778
|
ButtonMethods.id = id;
|
|
777
779
|
})(ButtonMethods = pxsim.ButtonMethods || (pxsim.ButtonMethods = {}));
|
|
778
780
|
})(pxsim || (pxsim = {}));
|
|
781
|
+
(function (pxsim) {
|
|
782
|
+
var browserEvents;
|
|
783
|
+
(function (browserEvents) {
|
|
784
|
+
function _setCursorVisible(visible) {
|
|
785
|
+
pxsim.board().gameplayer.setCursorVisible(visible);
|
|
786
|
+
}
|
|
787
|
+
browserEvents._setCursorVisible = _setCursorVisible;
|
|
788
|
+
})(browserEvents = pxsim.browserEvents || (pxsim.browserEvents = {}));
|
|
789
|
+
})(pxsim || (pxsim = {}));
|
|
779
790
|
var pxsim;
|
|
780
791
|
(function (pxsim) {
|
|
781
792
|
var Keyboard;
|
|
@@ -1352,6 +1363,7 @@ var pxsim;
|
|
|
1352
1363
|
visuals.releaseButton(pxsim.Key.Reset);
|
|
1353
1364
|
};
|
|
1354
1365
|
}
|
|
1366
|
+
this.setCursorVisible(true);
|
|
1355
1367
|
}
|
|
1356
1368
|
buttonChanged(button, isPressed) {
|
|
1357
1369
|
this.joystick.buttonChanged(button, isPressed);
|
|
@@ -1423,6 +1435,16 @@ var pxsim;
|
|
|
1423
1435
|
this.reset && this.reset.setAttribute("aria-disabled", "true");
|
|
1424
1436
|
}
|
|
1425
1437
|
}
|
|
1438
|
+
setCursorVisible(visible) {
|
|
1439
|
+
if (!this.screen)
|
|
1440
|
+
return;
|
|
1441
|
+
if (visible) {
|
|
1442
|
+
this.screen.style.cursor = "unset";
|
|
1443
|
+
}
|
|
1444
|
+
else {
|
|
1445
|
+
this.screen.style.cursor = "none";
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1426
1448
|
}
|
|
1427
1449
|
visuals.GamePlayer = GamePlayer;
|
|
1428
1450
|
})(visuals = pxsim.visuals || (pxsim.visuals = {}));
|