From dc2611467b38a8077b4fa8a23849f972a8ae1dfc Mon Sep 17 00:00:00 2001 From: ChK Date: Fri, 26 Jun 2026 06:48:01 +0000 Subject: [PATCH] public/GamePad.js aktualisiert --- public/GamePad.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/GamePad.js b/public/GamePad.js index 8670a3a..f242138 100755 --- a/public/GamePad.js +++ b/public/GamePad.js @@ -56,8 +56,8 @@ function checkGamePad() { if (x < -0.2) { socket.sendCommand(`G91 G1 X+${stepSizeXYZ} F${xyzSpeed}`);} if (x > 0.2) { socket.sendCommand(`G91 G1 X-${stepSizeXYZ} F${xyzSpeed}`);} - if (y < -0.2) { socket.sendCommand(`G91 G1 Y${stepSizeXYZ} F${xyzSpeed}`); } - if (y > 0.2) { socket.sendCommand(`G91 G1 Y-${stepSizeXYZ} F${xyzSpeed}`);} + if (y > 0.2) { socket.sendCommand(`G91 G1 Y${stepSizeXYZ} F${xyzSpeed}`);} + if (y < -0.2) { socket.sendCommand(`G91 G1 Y-${stepSizeXYZ} F${xyzSpeed}`); } if (z < -0.2) { socket.sendCommand(`G91 G1 Z${stepSizeXYZ} F${xyzSpeed}`); } if (z > 0.2) { socket.sendCommand(`G91 G1 Z-${stepSizeXYZ} F${xyzSpeed}`); }