mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Button hotkeys are now functioning.
This commit is contained in:
parent
49a142b92e
commit
c42ef6a23e
@ -23,10 +23,13 @@ void KeyShortcut::keyPressed(const SDL_KeyboardEvent & key)
|
||||
{
|
||||
if(vstd::contains(assignedKeys,key.keysym.sym))
|
||||
{
|
||||
if(key.state == SDL_PRESSED)
|
||||
if(key.state == SDL_PRESSED) {
|
||||
clickLeft(true, pressedL);
|
||||
else
|
||||
pressedL = true;
|
||||
} else {
|
||||
clickLeft(false, pressedL);
|
||||
pressedL = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user