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