internal void SendHidDeviceKeyEvent(string deviceAddress, BluetoothHidKeyData keyData) { int ret = Interop.Bluetooth.SendHidDeviceKeyEvent(deviceAddress, keyData); if (ret != (int)BluetoothError.None) { Log.Error(Globals.LogTag, "Failed to send key event to the remote device, Error - " + (BluetoothError)ret); BluetoothErrorFactory.ThrowBluetoothException(ret); } }
public void SendKeyEvent(BluetoothHidKeyData keyData) { BluetoothHidDeviceImpl.Instance.SendHidDeviceKeyEvent(RemoteAddress, keyData); }