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