예제 #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
파일: ApWindow.cs 프로젝트: Koneke/Apollyon
 public virtual void Receive(ApKeyBind _apk)
 {
 }
예제 #3
0
파일: ApWindow.cs 프로젝트: Koneke/Apollyon
 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);
 }