private void RegisterKeyListener(int key, KeyListener listener) { if (!callbacks.ContainsKey(key)) { this.callbacks.Add(key, listener); } }
public void RegisterKeyListener(Keys k, KeyListener listener) { this.RegisterKeyListener((int)k, listener); }
public void RegisterKeyListener(Buttons b, KeyListener listener) { this.RegisterKeyListener((int)b, listener); }