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

Removed usage of SDL_KeyboardEvent from UI code

This commit is contained in:
Ivan Savenko
2023-02-02 18:02:25 +02:00
parent 860fe43131
commit d4fba3787c
26 changed files with 160 additions and 131 deletions

View File

@@ -1589,7 +1589,7 @@ void CPlayerInterface::update()
if (!adventureInt || adventureInt->isActive())
GH.simpleRedraw();
else if((adventureInt->swipeEnabled && adventureInt->swipeMovementRequested) || adventureInt->scrollingDir)
else if((adventureInt->swipeEnabled && adventureInt->swipeMovementRequested) || (adventureInt->scrollingDir && GH.isKeyboardCtrlDown()))
GH.totalRedraw(); //player forces map scrolling though interface is disabled
else
GH.simpleRedraw();