Add HotkeyManager class.

This commit is contained in:
Paul Chote
2017-12-06 20:07:15 +00:00
committed by abcdefg30
parent 811427adc4
commit f98907f42e
6 changed files with 122 additions and 2 deletions

View File

@@ -27,6 +27,11 @@ namespace OpenRA
getValue = Invalid;
}
internal HotkeyReference(Func<Hotkey> getValue)
{
this.getValue = getValue;
}
public HotkeyReference(string name, KeySettings settings)
{
// Try parsing the value as a reference to a named hotkey