From e5f7c7d1cc4b95c935d78b83168b878c1e712eb3 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Fri, 1 Jun 2018 23:23:28 -0700 Subject: [PATCH] Fixed mouse down issues on buttons Bypassed isHolding(VK_LBUTTON) with (GetKeyState(VK_LBUTTON) & 0x100) != 0; temporarily --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 0f1139f..6345987 100644 --- a/main.cpp +++ b/main.cpp @@ -817,7 +817,7 @@ void Demo::onUserInput(UserInput* ui) { //dataModel->mousex = ui->getMouseX(); //dataModel->mousey = ui->getMouseY(); - dataModel->mouseButton1Down = IsHolding(VK_LBUTTON); + dataModel->mouseButton1Down = (GetKeyState(VK_LBUTTON) & 0x100) != 0; if (GetHoldKeyState(VK_LBUTTON)) { if (dragging) {