Add ToggleSmartShift action

This commit is contained in:
pixl
2020-07-08 16:29:20 -04:00
parent bc8f1a983a
commit 77f4240ec7
8 changed files with 133 additions and 2 deletions
+2
View File
@@ -30,12 +30,14 @@ KeypressAction::KeypressAction(Device *device, libconfig::Setting& config) :
void KeypressAction::press()
{
_pressed = true;
for(auto& key : _config.keys())
virtual_input->pressKey(key);
}
void KeypressAction::release()
{
_pressed = false;
for(auto& key : _config.keys())
virtual_input->releaseKey(key);
}