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