private void InitKey() { KeyReceiver = new KeyReceiver(Layer.System, BlockType.None); KeyReceiver.AddAction(UserInputKey.ShowDebug, (data) => { _adapter.Enable = !_adapter.Enable; }); _adapter.RegisterKeyReceive(KeyReceiver); }
private void InitKey() { _keyHandler = new KeyHandler(Layer.System, BlockType.None); _keyHandler.BindKeyAction(UserInputKey.ShowDebug, (data) => { _adapter.Enable = !_adapter.Enable; }); _adapter.RegisterKeyReceive(_keyHandler); }