aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/native
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/platform/native')
-rw-r--r--include/cru/platform/native/basic_types.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/cru/platform/native/basic_types.hpp b/include/cru/platform/native/basic_types.hpp
index a53fa671..247df06d 100644
--- a/include/cru/platform/native/basic_types.hpp
+++ b/include/cru/platform/native/basic_types.hpp
@@ -1,5 +1,5 @@
#pragma once
-#include "cru/common/pre_config.hpp"
+#include "cru/common/base.hpp"
namespace cru::platform::native {
struct Dpi {
@@ -7,5 +7,7 @@ struct Dpi {
float y;
};
-enum MouseButton : unsigned { Left = 0b1, Right = 0b10, Middle = 0b100 };
+enum class MouseButton : unsigned { Left = 0b1, Right = 0b10, Middle = 0b100 };
} // namespace cru::platform::native
+
+CRU_ENABLE_BITMASK_OPERATORS(::cru::platform::native::MouseButton)