From 127465b0eb2fedba5ded9ca9500f90f8900e5a9c Mon Sep 17 00:00:00 2001 From: Sylvessa <225480449+sylvessa@users.noreply.github.com> Date: Mon, 23 Mar 2026 17:54:46 -0500 Subject: add advanced tooltips, F3+H combo, and handle settings (#1389) --- Minecraft.Client/Windows64/KeyboardMouseInput.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Minecraft.Client/Windows64/KeyboardMouseInput.cpp') diff --git a/Minecraft.Client/Windows64/KeyboardMouseInput.cpp b/Minecraft.Client/Windows64/KeyboardMouseInput.cpp index 54191ebc..be6efe90 100644 --- a/Minecraft.Client/Windows64/KeyboardMouseInput.cpp +++ b/Minecraft.Client/Windows64/KeyboardMouseInput.cpp @@ -234,6 +234,13 @@ bool KeyboardMouseInput::IsKeyReleased(int vkCode) const return false; } +int KeyboardMouseInput::GetPressedKey() const +{ + for (int i = 0; i < MAX_KEYS; ++i) + if (m_keyPressed[i]) return i; + return 0; +} + bool KeyboardMouseInput::IsMouseButtonDown(int button) const { if (button >= 0 && button < MAX_MOUSE_BUTTONS) -- cgit v1.2.3