aboutsummaryrefslogtreecommitdiff
path: root/Super Polarity/InputController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Super Polarity/InputController.cs')
-rw-r--r--Super Polarity/InputController.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Super Polarity/InputController.cs b/Super Polarity/InputController.cs
index ad07717..79bd039 100644
--- a/Super Polarity/InputController.cs
+++ b/Super Polarity/InputController.cs
@@ -88,8 +88,8 @@ namespace SuperPolarity
{
if (!BlockedKeys.Contains(entry.Key))
{
- Dispatch(entry.Key, 1);
BlockedKeys.Add(entry.Key);
+ Dispatch(entry.Key, 1);
}
keyFired = true;
break;
@@ -111,8 +111,8 @@ namespace SuperPolarity
{
if (!BlockedButtons.Contains(entry.Key))
{
- Dispatch(entry.Key, 1);
BlockedButtons.Add(entry.Key);
+ Dispatch(entry.Key, 1);
}
keyFired = true;
break;
@@ -192,5 +192,11 @@ namespace SuperPolarity
method(value);
}
}
+
+ public static void Unlock(string eventName)
+ {
+ BlockedButtons.Remove(eventName);
+ BlockedKeys.Remove(eventName);
+ }
}
}