Пример #1
0
 public override void Receive(ApKeyBind _akb)
 {
     string _action = _akb.Action;
     switch(_action) {
         case "Clear Log":
             Log.Clear();
             break;
         default:
             Log.Add("Unrecognized action \"" + _action + "\".");
             break;
     }
 }
Пример #2
0
 public virtual void Receive(ApKeyBind _apk)
 {
 }
Пример #3
0
 public void Bind(ApKeyBind _apk)
 {
     MyManager.MyState.InputManager.Bind(
         _apk, this
     );
 }
Пример #4
0
 public override void Receive(ApKeyBind _apk)
 {
     string _action = _apk.Action;
     switch (_action)
     {
         case "Clear Selection":
             Selection = -1;
             break;
         default:
             break;
     }
 }
Пример #5
0
 public void Bind(ApKeyBind _abk, IInputReceiver _sender)
 {
     //ugly BUT it works
     _abk.Sender = _sender;
     KeyBinds.Add(_abk);
 }