diff options
author | 杨宇千 <crupest@outlook.com> | 2018-11-10 22:39:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-10 22:39:26 +0800 |
commit | 8b04c0dd788be75c2dd7d8f58aebc7d6bf6752df (patch) | |
tree | 2d00b4f6a7af93a13d271d78e6ef682c335c91c7 /src/ui/ui_base.cpp | |
parent | 7c2fb4578b6997b5ab0d98121cda253f734139c1 (diff) | |
parent | b2eced8d9719eb00796c2674fc2c23ab0c9bbdbf (diff) | |
download | cru-8b04c0dd788be75c2dd7d8f58aebc7d6bf6752df.tar.gz cru-8b04c0dd788be75c2dd7d8f58aebc7d6bf6752df.tar.bz2 cru-8b04c0dd788be75c2dd7d8f58aebc7d6bf6752df.zip |
Merge pull request #11 from crupest/listitem
Add ListItem.
Diffstat (limited to 'src/ui/ui_base.cpp')
-rw-r--r-- | src/ui/ui_base.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/ui_base.cpp b/src/ui/ui_base.cpp index b52694e7..c91fcd7b 100644 --- a/src/ui/ui_base.cpp +++ b/src/ui/ui_base.cpp @@ -15,4 +15,9 @@ namespace cru::ui const auto result = ::GetKeyState(virtual_code); return (static_cast<unsigned short>(result) & 1) != 0; } + + bool IsAnyMouseButtonDown() + { + return IsKeyDown(VK_LBUTTON) || IsKeyDown(VK_RBUTTON) || IsKeyDown(VK_MBUTTON); + } } |