From 38c7d3f9eb7d63937c6654ff5dd6046ce02dd59c Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Tue, 12 Nov 2013 22:40:29 -0600 Subject: I think bullets come out now. --- Super Polarity/InputController.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Super Polarity/InputController.cs') 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); + } } } -- cgit