Beispiel #1
0
 public void UnregisterHandler(SpecialKeyPressedHandler handler, params SpecialKey [] specialKeys)
 {
     foreach (SpecialKey specialKey in specialKeys)
     {
         if (key_map.Contains(specialKey))
         {
             int key = (int)key_map[specialKey];
             key_registrations[key] = Delegate.Remove(key_registrations[key] as Delegate, handler);
         }
     }
 }
Beispiel #2
0
 public void UnregisterHandler(SpecialKeyPressedHandler handler, params SpecialKey [] specialKeys)
 {
     foreach(SpecialKey specialKey in specialKeys) {
         if(key_map.Contains(specialKey)) {
             int key = (int)key_map[specialKey];
             key_registrations[key] = Delegate.Remove(key_registrations[key] as Delegate, handler);
         }
     }
 }