From 20f5628af895fa07277de314eb2232a4a5ca402e Mon Sep 17 00:00:00 2001 From: "[Valentino Heman Budiarto]" <[hemanvalentino@gmail.com]> Date: Tue, 27 Oct 2026 19:08:37 +0700 Subject: [PATCH] 1 --- app/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/page.tsx b/app/page.tsx index d80e291..2082c98 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -231,7 +231,8 @@ export default function RobotDashboard() { setGpVisuals({ lt: gpLT, rt: gpRT, steer: gpSteer, btnA: gpA, btnB: gpB, btnX: gpX, btnY: gpY }); } } else if (controlMode === 'pc-mobile') { - currentY = (keysRef.current.down ? 1 : 0) - (keysRef.current.up ? -1 : 0); + // W (up) menghasilkan 1, S (down) menghasilkan -1 + currentY = (keysRef.current.up ? 1 : 0) - (keysRef.current.down ? 1 : 0); currentX = (keysRef.current.right ? 1 : 0) - (keysRef.current.left ? 1 : 0); }