diff options
| author | Sylvessa <225480449+sylvessa@users.noreply.github.com> | 2026-03-23 17:54:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-23 17:54:46 -0500 |
| commit | 127465b0eb2fedba5ded9ca9500f90f8900e5a9c (patch) | |
| tree | 5cdf4ebda414d6e39e117893a8a82fe38f12bf30 /Minecraft.Client/Windows64/KeyboardMouseInput.cpp | |
| parent | 77433dbd8660b53ed3f7e49d4315c8629ce0adb3 (diff) | |
add advanced tooltips, F3+H combo, and handle settings (#1389)
Diffstat (limited to 'Minecraft.Client/Windows64/KeyboardMouseInput.cpp')
| -rw-r--r-- | Minecraft.Client/Windows64/KeyboardMouseInput.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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) |
