1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Replaced isMouseButtonPressed with isMouseLeftButtonPressed

This commit is contained in:
Ivan Savenko
2023-06-13 19:27:43 +03:00
parent 82288996a2
commit 8ad577255f
7 changed files with 13 additions and 13 deletions

View File

@@ -175,15 +175,15 @@ void EventDispatcher::handleLeftButtonClick(bool isPressed)
if(!vstd::contains(lclickable, i))
continue;
auto prev = i->isMouseButtonPressed(MouseButton::LEFT);
auto prev = i->isMouseLeftButtonPressed();
if(!isPressed)
i->currentMouseState[MouseButton::LEFT] = isPressed;
i->mouseClickedState = isPressed;
if( i->receiveEvent(GH.getCursorPosition(), AEventsReceiver::LCLICK))
{
if(isPressed)
i->currentMouseState[MouseButton::LEFT] = isPressed;
i->mouseClickedState = isPressed;
i->clickLeft(isPressed, prev);
}
else if(!isPressed)