Exemplo n.º 1
0
 public KeyboardServiceWrapper(IBluetoothManager bluetoothManager)
 {
     BluetoothManager = bluetoothManager;
     KeyActionCharacteristicWrapper   = new KeyActionCharacteristicWrapper(this);
     MouseActionCharacteristicWrapper = new MouseActionCharacteristicWrapper(this);
     GattServerService = BluetoothManager.NewGattServiceBuilder()
                         .SetUuid(Guid)
                         .AddCharacteristics(KeyActionCharacteristicWrapper.GattServerCharacteristic)
                         .AddCharacteristics(MouseActionCharacteristicWrapper.GattServerCharacteristic)
                         .Build();
 }
Exemplo n.º 2
0
 public void UpdateKeyStatus(VirtualKeyCode keyCode, KeyStatus status)
 {
     KeyActionCharacteristicWrapper.NotifyKeyStatus(keyCode, status);
 }