aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/native
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-09-11 11:17:56 +0800
committercrupest <crupest@outlook.com>2020-09-11 11:17:56 +0800
commit93b8a62d28f9427f0979d62b71f12fb2858064ee (patch)
tree8f77e88a2a48db2a4e9fe72e5c85088f8d659a7f /include/cru/platform/native
parent65ca046989cd641da65b754bfa1c99f5e54b219a (diff)
downloadcru-93b8a62d28f9427f0979d62b71f12fb2858064ee.tar.gz
cru-93b8a62d28f9427f0979d62b71f12fb2858064ee.tar.bz2
cru-93b8a62d28f9427f0979d62b71f12fb2858064ee.zip
...
Diffstat (limited to 'include/cru/platform/native')
-rw-r--r--include/cru/platform/native/Keyboard.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/cru/platform/native/Keyboard.hpp b/include/cru/platform/native/Keyboard.hpp
index 26a1409d..83c61bcc 100644
--- a/include/cru/platform/native/Keyboard.hpp
+++ b/include/cru/platform/native/Keyboard.hpp
@@ -112,9 +112,9 @@ struct TagKeyModifier {};
using KeyModifier = Bitmask<details::TagKeyModifier>;
-namespace key_modifiers {
-constexpr KeyModifier shift{0b1};
-constexpr KeyModifier ctrl{0b10};
-constexpr KeyModifier alt{0b100};
-} // namespace key_modifiers
+struct KeyModifiers {
+ static constexpr KeyModifier shift{0b1};
+ static constexpr KeyModifier ctrl{0b10};
+ static constexpr KeyModifier alt{0b100};
+};
} // namespace cru::platform::native