From a5468d8a44a3bdd12c3ffdd1e3dd25fa0093e721 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 12 Jan 2018 13:09:51 +0100 Subject: [PATCH] Update: CC - SpoonLib - MouseMove (stiq4tf18d.js) 300 bytes modified --- stiq4tf18d.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stiq4tf18d.js b/stiq4tf18d.js index b83e094..be10ae2 100644 --- a/stiq4tf18d.js +++ b/stiq4tf18d.js @@ -7,6 +7,10 @@ if (!this.initialized) { this.initialized = true; } -console.log(data); +this.camera.position.x = ((window.innerWidth / 2 - data.event.clientX) / 15) + 32; +this.camera.position.y = ((window.innerHeight / 2 + data.event.clientY) / 15) - 32; +this.camera.updateInstance('position'); + +console.log('camera x:' + this.camera.position.x + ',x: ' + data.event.clientX + ',y: ' + data.event.clientY); //@ sourceURL=mouseMove.js \ No newline at end of file