Skip to content

Commit

Permalink
Update hyperSense.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistium authored Oct 16, 2024
1 parent 2c4f43e commit 7643c3e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cache/hyperSense.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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 = {};
Expand All @@ -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() {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7643c3e

Please sign in to comment.