diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-02 00:04:54 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-02 00:43:04 +0800 |
| commit | 47e00f7b62b0717d09504d63e9d53404250609de (patch) | |
| tree | d0024d39bea490bfca6f35df58c39f23e5d1c21d /Minecraft.Client/stubs.h | |
| parent | e16600a3e6b497f520178a7cb8be7a06b5c6efad (diff) | |
feat: improve mouse input handling
Diffstat (limited to 'Minecraft.Client/stubs.h')
| -rw-r--r-- | Minecraft.Client/stubs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Minecraft.Client/stubs.h b/Minecraft.Client/stubs.h index f9196e20..cc788867 100644 --- a/Minecraft.Client/stubs.h +++ b/Minecraft.Client/stubs.h @@ -186,7 +186,11 @@ class Keyboard public: static void create() {} static void destroy() {} +#ifdef _WINDOWS64 + static bool isKeyDown(int key); +#else static bool isKeyDown(int) {return false;} +#endif static wstring getKeyName(int) { return L"KEYNAME"; } static void enableRepeatEvents(bool) {} static const int KEY_A = 0; @@ -224,6 +228,8 @@ public: static const int KEY_UP = 32; static const int KEY_DOWN = 33; static const int KEY_TAB = 34; + static const int KEY_LEFT = 35; + static const int KEY_RIGHT = 36; }; class Mouse @@ -231,9 +237,15 @@ class Mouse public: static void create() {} static void destroy() {} +#ifdef _WINDOWS64 + static int getX(); + static int getY(); + static bool isButtonDown(int button); +#else static int getX() { return 0; } static int getY() { return 0; } static bool isButtonDown(int) { return false; } +#endif }; class Display |
