diff options
author | crupest <crupest@outlook.com> | 2018-11-07 20:20:26 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-07 20:20:26 +0800 |
commit | e2efeb22595b263f6eac5563b163a2574aa2f0dc (patch) | |
tree | e371ab858ce124c0d2070096e41314e44af87ca2 /src/ui/ui_base.cpp | |
parent | 2b5b89e9483063f3af05fb5485043868d447994b (diff) | |
download | cru-e2efeb22595b263f6eac5563b163a2574aa2f0dc.tar.gz cru-e2efeb22595b263f6eac5563b163a2574aa2f0dc.tar.bz2 cru-e2efeb22595b263f6eac5563b163a2574aa2f0dc.zip |
Reformat codes.
Diffstat (limited to 'src/ui/ui_base.cpp')
-rw-r--r-- | src/ui/ui_base.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/ui/ui_base.cpp b/src/ui/ui_base.cpp index 3bee2269..0195c588 100644 --- a/src/ui/ui_base.cpp +++ b/src/ui/ui_base.cpp @@ -2,18 +2,17 @@ #include "system_headers.h" -namespace cru { - namespace ui { - bool IsKeyDown(const int virtual_code) - { - const auto result = ::GetKeyState(virtual_code); - return (static_cast<unsigned short>(result) & 0x8000) != 0; - } +namespace cru::ui +{ + bool IsKeyDown(const int virtual_code) + { + const auto result = ::GetKeyState(virtual_code); + return (static_cast<unsigned short>(result) & 0x8000) != 0; + } - bool IsKeyToggled(const int virtual_code) - { - const auto result = ::GetKeyState(virtual_code); - return (static_cast<unsigned short>(result) & 1) != 0; - } + bool IsKeyToggled(const int virtual_code) + { + const auto result = ::GetKeyState(virtual_code); + return (static_cast<unsigned short>(result) & 1) != 0; } } |