aboutsummaryrefslogtreecommitdiff
path: root/Super Polarity/InputController.cs
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2013-11-12 22:40:29 -0600
committerBen Beltran <ben@nsovocal.com>2013-11-12 22:40:29 -0600
commit38c7d3f9eb7d63937c6654ff5dd6046ce02dd59c (patch)
tree9df6c6faa8cb250d66c022f2d54a0f769adb7cfd /Super Polarity/InputController.cs
parent2af83e98005a14c439b360a5b9ac636f594d9f0c (diff)
I think bullets come out now.
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);
+ }
}
}