I have a script that triggers when the cursor is being moved:
window.addEventListener(\'mousemove\', function(e){ mouse.x = e.x; mouse.y = e.y;