Advertisement
jargon

PuzzlumJs :: "js includes.js"

Jul 22nd, 2024
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var mouseEvent = {};
  2. var mouseUp = false;
  3. var mouseOver = false;
  4.  
  5. window.onkeydown = e => {
  6.     keysPressed[e.code] = "down";
  7. };
  8. window.onkeyup = e => {
  9.     keysPressed[e.code] = "up";
  10. };
  11.  
  12. window.onmouseup = e => {
  13.     mouseUp = true;
  14.     mouseEvent = e;
  15. };
  16. window.onmouseover = e => {
  17.     mouseOver = true;
  18.     mouseEvent = e;
  19. };
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement