From e3e51a8d80c1dec8d69970c474c6307501e089e1 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Tue, 12 May 2015 15:34:39 +0200 Subject: [PATCH] Both azerty and qwerty works now ! --- static/js/PointerCamera.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/PointerCamera.js b/static/js/PointerCamera.js index 269a5ca..83f1132 100644 --- a/static/js/PointerCamera.js +++ b/static/js/PointerCamera.js @@ -272,10 +272,10 @@ PointerCamera.prototype.onKeyEvent = function(event, toSet) { case 32: this.boost = toSet; break; // Qwerty keyboards - // case 38: case 87: this.moveForward = toSet; break; // up / w - // case 37: case 65: this.moveLeft = toSet; break; // left / a - // case 40: case 83: this.moveBackward = toSet; break; // down / s - // case 39: case 68: this.moveRight = toSet; break; // right / d + case 38: case 87: this.moveForward = toSet; break; // up / w + case 37: case 65: this.moveLeft = toSet; break; // left / a + case 40: case 83: this.moveBackward = toSet; break; // down / s + case 39: case 68: this.moveRight = toSet; break; // right / d case 73: case 104: this.increasePhi = toSet; break; // 8 Up for angle case 75: case 98: this.decreasePhi = toSet; break; // 2 Down for angle