aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/native
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-28 16:17:20 +0800
committercrupest <crupest@outlook.com>2020-10-28 16:17:20 +0800
commitfde24556042b76863bdec34dcc213cb7298f68f9 (patch)
treea6ed8de1a5044c24b72a1b71dad21bb977b6b1be /include/cru/platform/native
parent9d4a37acbe66983654aa90dbd3aa3700038697b9 (diff)
downloadcru-fde24556042b76863bdec34dcc213cb7298f68f9.tar.gz
cru-fde24556042b76863bdec34dcc213cb7298f68f9.tar.bz2
cru-fde24556042b76863bdec34dcc213cb7298f68f9.zip
...
Diffstat (limited to 'include/cru/platform/native')
-rw-r--r--include/cru/platform/native/Keyboard.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cru/platform/native/Keyboard.hpp b/include/cru/platform/native/Keyboard.hpp
index 83c61bcc..8f53c5d6 100644
--- a/include/cru/platform/native/Keyboard.hpp
+++ b/include/cru/platform/native/Keyboard.hpp
@@ -1,4 +1,5 @@
#pragma once
+#include <string_view>
#include "cru/common/Bitmask.hpp"
namespace cru::platform::native {
@@ -117,4 +118,8 @@ struct KeyModifiers {
static constexpr KeyModifier ctrl{0b10};
static constexpr KeyModifier alt{0b100};
};
+
+std::u16string_view ToString(KeyCode key_code);
+std::u16string ToString(KeyModifier key_modifier,
+ std::u16string_view separator = u"+");
} // namespace cru::platform::native