diff options
Diffstat (limited to 'src/ui/ui_base.cpp')
-rw-r--r-- | src/ui/ui_base.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/ui/ui_base.cpp b/src/ui/ui_base.cpp index c91fcd7b..2853011d 100644 --- a/src/ui/ui_base.cpp +++ b/src/ui/ui_base.cpp @@ -1,23 +1,6 @@ #include "ui_base.hpp" -#include "system_headers.hpp" - namespace cru::ui { - bool IsKeyDown(const int virtual_code) - { - const auto result = ::GetKeyState(virtual_code); - return (static_cast<unsigned short>(result) & 0x8000) != 0; - } - - bool IsKeyToggled(const int virtual_code) - { - const auto result = ::GetKeyState(virtual_code); - return (static_cast<unsigned short>(result) & 1) != 0; - } - bool IsAnyMouseButtonDown() - { - return IsKeyDown(VK_LBUTTON) || IsKeyDown(VK_RBUTTON) || IsKeyDown(VK_MBUTTON); - } } |