diff --git a/cache/hyperSense.js b/cache/hyperSense.js index a10428b..c9025ad 100644 --- a/cache/hyperSense.js +++ b/cache/hyperSense.js @@ -27,7 +27,6 @@ runtime.on("BEFORE_EXECUTE", () => { timer++; runtime.shouldExecuteStopClicked = false; - runtime.startHats("HyperSenseSP_whenKeyPressed"); }); runtime.on("PROJECT_START", () => { timer = 0 }); runtime.on("PROJECT_STOP_ALL", () => { timer = 0 }); @@ -41,9 +40,7 @@ this.scrollDistance = 0; this.oldScroll = [0, 0]; - this.loudnessArray = []; window.addEventListener("wheel", this.handleScroll); - this.isMicrophoneEnabled = false; this.pressedKey = null; this.wait = [false, "sprite"]; this.pressedKeys = {}; @@ -62,10 +59,6 @@ currentlyPressedKey = Object.keys(this.pressedKeys).pop() || null; keyPressTime = 0; }); - document.addEventListener("mousemove", (event) => { - window.mouseX = event.clientX; - window.mouseY = event.clientY; - }); } getInfo() { @@ -329,11 +322,6 @@ return this.handleKeyPress(key, false); } - whenKeyPressed(args) { - const key = Scratch.Cast.toString(args.KEY).replace(" ", ""); - return this.handleKeyPress(key, true); - } - isKeyPressed(args) { const key = Scratch.Cast.toString(args.KEY).replace(" ", ""); return this.handleKeyPress(key, true);