1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Moved input-related code from SDL_Extensions to GuiHandler

This commit is contained in:
Ivan Savenko
2023-02-02 16:15:39 +02:00
parent 214fc19e74
commit 6669ffd4b3
13 changed files with 108 additions and 122 deletions

View File

@@ -464,7 +464,7 @@ void CSpellWindow::keyPressed(const SDL_KeyboardEvent & key)
}
//alt + 1234567890-= casts spell from 1 - 12 slot
if(myInt->altPressed())
if(GH.isKeyboardAltDown())
{
SDL_Keycode hlpKey = key.keysym.sym;
if(CGuiHandler::isNumKey(hlpKey, false))