1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Send hover event to buttons in battle UI

This commit is contained in:
Ivan Savenko 2022-12-01 23:39:43 +02:00
parent c721d7c4f3
commit bbd4d361e4

View File

@ -294,11 +294,13 @@ void CBattleInterface::keyPressed(const SDL_KeyboardEvent & key)
actionsController->endCastingSpell();
}
}
void CBattleInterface::mouseMoved(const SDL_MouseMotionEvent &sEvent)
void CBattleInterface::mouseMoved(const SDL_MouseMotionEvent &event)
{
BattleHex selectedHex = fieldController->getHoveredHex();
actionsController->handleHex(selectedHex, MOVE);
controlPanel->mouseMoved(event);
}
void CBattleInterface::clickRight(tribool down, bool previousState)