mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-11-17 23:25:15 -06:00
Add cursor condition to check if mouse button is held down
This commit is contained in:
@@ -278,6 +278,21 @@ std::chrono::high_resolution_clock::time_point GetLastMouseRightClickTime()
|
||||
return lastMouseRightClickTime;
|
||||
}
|
||||
|
||||
bool IsMouseLeftButtonDown()
|
||||
{
|
||||
return GetAsyncKeyState(VK_LBUTTON) & 0x8000;
|
||||
}
|
||||
|
||||
bool IsMouseMiddleButtonDown()
|
||||
{
|
||||
return GetAsyncKeyState(VK_MBUTTON) & 0x8000;
|
||||
}
|
||||
|
||||
bool IsMouseRightButtonDown()
|
||||
{
|
||||
return GetAsyncKeyState(VK_RBUTTON) & 0x8000;
|
||||
}
|
||||
|
||||
static void handleRawMouseInput(LPARAM lParam)
|
||||
{
|
||||
UINT dwSize;
|
||||
|
||||
Reference in New Issue
Block a user