2020-04-08 09:11:58 -07:00
|
|
|
#pragma once
|
|
|
|
|
#include "Shortcut.h"
|
2020-07-23 16:43:49 -07:00
|
|
|
#include <variant>
|
2020-04-08 09:11:58 -07:00
|
|
|
|
|
|
|
|
// This class stores all the variables associated with each shortcut remapping
|
|
|
|
|
class RemapShortcut
|
|
|
|
|
{
|
|
|
|
|
public:
|
2020-07-23 16:43:49 -07:00
|
|
|
std::variant<DWORD, Shortcut> targetShortcut;
|
2020-04-08 09:11:58 -07:00
|
|
|
bool isShortcutInvoked;
|
|
|
|
|
ModifierKey winKeyInvoked;
|
|
|
|
|
|
2020-07-23 16:43:49 -07:00
|
|
|
RemapShortcut(const std::variant<DWORD, Shortcut>& sc) :
|
2020-04-08 09:11:58 -07:00
|
|
|
targetShortcut(sc), isShortcutInvoked(false), winKeyInvoked(ModifierKey::Disabled)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RemapShortcut() :
|
2020-07-23 16:43:49 -07:00
|
|
|
targetShortcut(Shortcut()), isShortcutInvoked(false), winKeyInvoked(ModifierKey::Disabled)
|
2020-04-08 09:11:58 -07:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
};
|