Change key constants to mutable variables

This commit is contained in:
Lisiowen 2026-04-25 10:58:34 +01:00 committed by GitHub
parent 42e75876f2
commit 891bfb00da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,29 +14,29 @@ public:
static const int MOUSE_MIDDLE = 2; static const int MOUSE_MIDDLE = 2;
static const int MAX_MOUSE_BUTTONS = 3; static const int MAX_MOUSE_BUTTONS = 3;
static const int KEY_FORWARD = 'W'; static int KEY_FORWARD;
static const int KEY_BACKWARD = 'S'; static int KEY_BACKWARD;
static const int KEY_LEFT = 'A'; static int KEY_LEFT;
static const int KEY_RIGHT = 'D'; static int KEY_RIGHT;
static const int KEY_JUMP = VK_SPACE; static int KEY_JUMP;
static const int KEY_SNEAK = VK_LSHIFT; static int KEY_SNEAK;
static const int KEY_SPRINT = VK_CONTROL; static int KEY_SPRINT;
static const int KEY_INVENTORY = 'E'; static int KEY_INVENTORY;
static const int KEY_DROP = 'Q'; static int KEY_DROP;
static const int KEY_CRAFTING = 'C'; static int KEY_CRAFTING;
static const int KEY_CRAFTING_ALT = 'R'; static int KEY_CRAFTING_ALT;
static const int KEY_CHAT = 'T'; static int KEY_CHAT;
static const int KEY_CONFIRM = VK_RETURN; static int KEY_CONFIRM;
static const int KEY_CANCEL = VK_ESCAPE; static int KEY_CANCEL;
static const int KEY_PAUSE = VK_ESCAPE; static int KEY_PAUSE;
static const int KEY_TOGGLE_HUD = VK_F1; static int KEY_TOGGLE_HUD;
static const int KEY_DEBUG_INFO = VK_F3; static int KEY_DEBUG_INFO;
static const int KEY_DEBUG_MENU = VK_F4; static int KEY_DEBUG_MENU;
static const int KEY_THIRD_PERSON = VK_F5; static int KEY_THIRD_PERSON;
static const int KEY_DEBUG_CONSOLE = VK_F6; static int KEY_DEBUG_CONSOLE;
static const int KEY_HOST_SETTINGS = VK_TAB; static int KEY_HOST_SETTINGS;
static const int KEY_FULLSCREEN = VK_F11; static const int KEY_FULLSCREEN = VK_F11;
static const int KEY_SCREENSHOT = VK_F2; static int KEY_SCREENSHOT;
void Init(); void Init();
void Tick(); void Tick();