diff options
author | crupest <crupest@outlook.com> | 2021-10-03 22:29:38 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-03 22:29:38 +0800 |
commit | 4056e710b4c99968afc4db3bbf26e2d3fef5db07 (patch) | |
tree | 8de0ebee0f8e9e4ba8b62fe6e36fa07e33c44155 /include/cru | |
parent | 9e4db17fa43dbb8bed25feb4769f672893e9463c (diff) | |
download | cru-4056e710b4c99968afc4db3bbf26e2d3fef5db07.tar.gz cru-4056e710b4c99968afc4db3bbf26e2d3fef5db07.tar.bz2 cru-4056e710b4c99968afc4db3bbf26e2d3fef5db07.zip |
...
Diffstat (limited to 'include/cru')
-rw-r--r-- | include/cru/osx/gui/Keyboard.hpp | 7 | ||||
-rw-r--r-- | include/cru/platform/gui/Keyboard.hpp | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/include/cru/osx/gui/Keyboard.hpp b/include/cru/osx/gui/Keyboard.hpp new file mode 100644 index 00000000..b31bcf2b --- /dev/null +++ b/include/cru/osx/gui/Keyboard.hpp @@ -0,0 +1,7 @@ +#pragma once +#include "cru/platform/gui/Keyboard.hpp" + +namespace cru::platform::gui::osx { +KeyCode KeyCodeFromOsxToCru(unsigned short n); +unsigned short KeyCodeFromOsxToCru(KeyCode k); +} // namespace cru::platform::gui::osx diff --git a/include/cru/platform/gui/Keyboard.hpp b/include/cru/platform/gui/Keyboard.hpp index b025d86e..80524133 100644 --- a/include/cru/platform/gui/Keyboard.hpp +++ b/include/cru/platform/gui/Keyboard.hpp @@ -107,7 +107,10 @@ enum class KeyCode { NumPad6, NumPad7, NumPad8, - NumPad9 + NumPad9, + LeftCommand, + RightCommand, + Return }; namespace details { |