From e7321789ae413fb3c7f58023b62b2b4f04add505 Mon Sep 17 00:00:00 2001 From: Andrei Kondratov Date: Fri, 11 Oct 2024 23:13:04 +0500 Subject: [PATCH] feat: controls for capital letter --- packages/client/src/components/Game/controls.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client/src/components/Game/controls.tsx b/packages/client/src/components/Game/controls.tsx index 89d0c70..9e71fc7 100644 --- a/packages/client/src/components/Game/controls.tsx +++ b/packages/client/src/components/Game/controls.tsx @@ -17,10 +17,10 @@ type Vector = { } const MOVEMENT_CONTROLS: Record = { - [Action.MoveUp]: ['ArrowUp', 'w', 'ц'], - [Action.MoveDown]: ['ArrowDown', 's', 'ы'], - [Action.MoveLeft]: ['ArrowLeft', 'a', 'ф'], - [Action.MoveRight]: ['ArrowRight', 'd', 'в'], + [Action.MoveUp]: ['ArrowUp', 'w', 'ц', 'W', 'Ц'], + [Action.MoveDown]: ['ArrowDown', 's', 'ы', 'S', 'Ы'], + [Action.MoveLeft]: ['ArrowLeft', 'a', 'ф', 'A', 'Ф'], + [Action.MoveRight]: ['ArrowRight', 'd', 'в', 'D', 'В'], } const VECTORS: Record = {