From 891bfb00dada06153d246fc92f865d7beb5d6cd8 Mon Sep 17 00:00:00 2001 From: Lisiowen <85371581+Lisiowen@users.noreply.github.com> Date: Sat, 25 Apr 2026 10:58:34 +0100 Subject: [PATCH] Change key constants to mutable variables --- .../Windows64/KeyboardMouseInput.h | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Minecraft.Client/Windows64/KeyboardMouseInput.h b/Minecraft.Client/Windows64/KeyboardMouseInput.h index 9b25c929d..2f6917cbe 100644 --- a/Minecraft.Client/Windows64/KeyboardMouseInput.h +++ b/Minecraft.Client/Windows64/KeyboardMouseInput.h @@ -14,29 +14,29 @@ public: static const int MOUSE_MIDDLE = 2; static const int MAX_MOUSE_BUTTONS = 3; - static const int KEY_FORWARD = 'W'; - static const int KEY_BACKWARD = 'S'; - static const int KEY_LEFT = 'A'; - static const int KEY_RIGHT = 'D'; - static const int KEY_JUMP = VK_SPACE; - static const int KEY_SNEAK = VK_LSHIFT; - static const int KEY_SPRINT = VK_CONTROL; - static const int KEY_INVENTORY = 'E'; - static const int KEY_DROP = 'Q'; - static const int KEY_CRAFTING = 'C'; - static const int KEY_CRAFTING_ALT = 'R'; - static const int KEY_CHAT = 'T'; - static const int KEY_CONFIRM = VK_RETURN; - static const int KEY_CANCEL = VK_ESCAPE; - static const int KEY_PAUSE = VK_ESCAPE; - static const int KEY_TOGGLE_HUD = VK_F1; - static const int KEY_DEBUG_INFO = VK_F3; - static const int KEY_DEBUG_MENU = VK_F4; - static const int KEY_THIRD_PERSON = VK_F5; - static const int KEY_DEBUG_CONSOLE = VK_F6; - static const int KEY_HOST_SETTINGS = VK_TAB; + static int KEY_FORWARD; + static int KEY_BACKWARD; + static int KEY_LEFT; + static int KEY_RIGHT; + static int KEY_JUMP; + static int KEY_SNEAK; + static int KEY_SPRINT; + static int KEY_INVENTORY; + static int KEY_DROP; + static int KEY_CRAFTING; + static int KEY_CRAFTING_ALT; + static int KEY_CHAT; + static int KEY_CONFIRM; + static int KEY_CANCEL; + static int KEY_PAUSE; + static int KEY_TOGGLE_HUD; + static int KEY_DEBUG_INFO; + static int KEY_DEBUG_MENU; + static int KEY_THIRD_PERSON; + static int KEY_DEBUG_CONSOLE; + static int KEY_HOST_SETTINGS; static const int KEY_FULLSCREEN = VK_F11; - static const int KEY_SCREENSHOT = VK_F2; + static int KEY_SCREENSHOT; void Init(); void Tick();