about summary refs log tree commit diff stats
path: root/html/rogue/js/input.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/rogue/js/input.js')
-rw-r--r--html/rogue/js/input.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/html/rogue/js/input.js b/html/rogue/js/input.js
deleted file mode 100644
index 047321c..0000000
--- a/html/rogue/js/input.js
+++ /dev/null
@@ -1,19 +0,0 @@
-const setupInputHandlers = (canvas, gameState) => {
-    let mouseMoveThrottle;
-    
-    canvas.addEventListener('mousemove', (e) => {
-        if (!mouseMoveThrottle) {
-            mouseMoveThrottle = setTimeout(() => {
-                gameState.debug.mouseX = e.clientX + gameState.camera.x;
-                gameState.debug.mouseY = e.clientY + gameState.camera.y;
-                mouseMoveThrottle = null;
-            }, 16);
-        }
-    });
-
-    window.addEventListener('keydown', (e) => {
-        if (e.key === 'd') {
-            gameState.debug.enabled = !gameState.debug.enabled;
-        }
-    });
-}; 
\ No newline at end of file