Example #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;
     }
 }
Example #2
0
 public virtual void Receive(ApKeyBind _apk)
 {
 }
Example #3
0
 public void Bind(ApKeyBind _apk)
 {
     MyManager.MyState.InputManager.Bind(
         _apk, this
     );
 }
Example #4
0
 public override void Receive(ApKeyBind _apk)
 {
     string _action = _apk.Action;
     switch (_action)
     {
         case "Clear Selection":
             Selection = -1;
             break;
         default:
             break;
     }
 }
Example #5
0
 public void Bind(ApKeyBind _abk, IInputReceiver _sender)
 {
     //ugly BUT it works
     _abk.Sender = _sender;
     KeyBinds.Add(_abk);
 }