From 6aa0c3a96fb6a99f38f851c2ab76dd2fcfb60e9f Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 24 Mar 2018 17:24:03 +0100 Subject: [PATCH] Update: CC - Snake FS - Mouse Down (gzewp2awcf.js) 144 bytes modified --- gzewp2awcf.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gzewp2awcf.js b/gzewp2awcf.js index b4d0a5b..a2f33f2 100644 --- a/gzewp2awcf.js +++ b/gzewp2awcf.js @@ -6,6 +6,13 @@ if (!this.initialized) { this.initialized = true; } -console.log(data); + + +var mouse = { + x : (data.event.offsetX / data.event.target.width ) * 2 - 1, + y : -(data.event.offsetY / data.event.target.height) * 2 + 1 +} + +console.log(mouse); //@ sourceURL=mouseDown.js \ No newline at end of file