Пример #1
0
 private void RegisterKeyListener(int key, KeyListener listener)
 {
     if (!callbacks.ContainsKey(key))
     {
         this.callbacks.Add(key, listener);
     }
 }
Пример #2
0
 public void RegisterKeyListener(Keys k, KeyListener listener)
 {
     this.RegisterKeyListener((int)k, listener);
 }
Пример #3
0
 public void RegisterKeyListener(Buttons b, KeyListener listener)
 {
     this.RegisterKeyListener((int)b, listener);
 }