diff options
author | crupest <crupest@outlook.com> | 2020-09-11 11:17:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-09-11 11:17:56 +0800 |
commit | 93b8a62d28f9427f0979d62b71f12fb2858064ee (patch) | |
tree | 8f77e88a2a48db2a4e9fe72e5c85088f8d659a7f /src/win/native | |
parent | 65ca046989cd641da65b754bfa1c99f5e54b219a (diff) | |
download | cru-93b8a62d28f9427f0979d62b71f12fb2858064ee.tar.gz cru-93b8a62d28f9427f0979d62b71f12fb2858064ee.tar.bz2 cru-93b8a62d28f9427f0979d62b71f12fb2858064ee.zip |
...
Diffstat (limited to 'src/win/native')
-rw-r--r-- | src/win/native/Keyboard.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/win/native/Keyboard.cpp b/src/win/native/Keyboard.cpp index aa22e4a4..929ca737 100644 --- a/src/win/native/Keyboard.cpp +++ b/src/win/native/Keyboard.cpp @@ -66,9 +66,9 @@ KeyCode VirtualKeyToKeyCode(int virtual_key) { KeyModifier RetrieveKeyMofifier() { KeyModifier result{0}; - if (::GetKeyState(VK_SHIFT) < 0) result |= key_modifiers::shift; - if (::GetKeyState(VK_CONTROL) < 0) result |= key_modifiers::ctrl; - if (::GetKeyState(VK_MENU) < 0) result |= key_modifiers::alt; + if (::GetKeyState(VK_SHIFT) < 0) result |= KeyModifiers::shift; + if (::GetKeyState(VK_CONTROL) < 0) result |= KeyModifiers::ctrl; + if (::GetKeyState(VK_MENU) < 0) result |= KeyModifiers::alt; return result; } } // namespace cru::platform::native::win |