Esempio 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();
 }
Esempio n. 2
0
 public void UpdateKeyStatus(VirtualKeyCode keyCode, KeyStatus status)
 {
     KeyActionCharacteristicWrapper.NotifyKeyStatus(keyCode, status);
 }