aboutsummaryrefslogtreecommitdiff
path: root/src/ui/ui_base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_base.cpp')
-rw-r--r--src/ui/ui_base.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/ui/ui_base.cpp b/src/ui/ui_base.cpp
deleted file mode 100644
index c91fcd7b..00000000
--- a/src/ui/ui_base.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#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);
- }
-}