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:
parent
c721d7c4f3
commit
bbd4d361e4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user