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