我想连接一个单一的wiiMote到我的应用程序使用WiiMoteLib,但我希望连接在内部完成。用户只需运行应用程序(不需要使用windows向导或bluesoleil连接wiiMote )。该应用程序使用的是C#,无法更改语言。谢谢!
发布于 2012-01-26 23:25:08
32feet.NET能完成这项工作吗?
BluetoothAddress addr = ... address from discovery or known address...
var dev = new BluetoothDeviceInfo(addr);
dev.SetServiceState(BluetoothService.HumanInterfaceDevice, true); // this line!您可能还需要处理配对,可能是使用BluetoothWin32Authentication并处理其回调,请参阅http://32feet.codeplex.com/wikipage?title=Bluetooth%20Security http://32feet.codeplex.com/wikipage?title=BluetoothWin32Authentication
发布于 2012-08-12 20:47:04
这里有一个如何使用Microsoft Bluetooth API和HID API来完成此操作的示例:
http://www.richlynch.com/code/wiipair
quire运行得很好。
它是用C++编写的,但是它很容易转换成C#。
https://stackoverflow.com/questions/8931058
复制相似问题