mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Replaced clickLeft with clickPressed clickReleased methods
This commit is contained in:
@@ -313,7 +313,7 @@ void CKeyShortcut::keyPressed(EShortcut key)
|
||||
if( assignedKey == key && assignedKey != EShortcut::NONE && !shortcutPressed)
|
||||
{
|
||||
shortcutPressed = true;
|
||||
clickLeft(true, false);
|
||||
clickPressed(GH.getCursorPosition());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -322,7 +322,7 @@ void CKeyShortcut::keyReleased(EShortcut key)
|
||||
if( assignedKey == key && assignedKey != EShortcut::NONE && shortcutPressed)
|
||||
{
|
||||
shortcutPressed = false;
|
||||
clickLeft(false, true);
|
||||
clickReleased(GH.getCursorPosition());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user