我们正在使用KeyboardCapabilities.KeyboardPresent来测试设备是否连接了键盘:
bool hasKeyboard = new KeyboardCapabilities().KeyboardPresent == 1;
不幸的是,无论是否连接了蓝牙键盘,KeyboardCapabilities.KeyboardPresent始终为TRUE。我们尝试了以下硬件:
Dell Vostro 470是一台配备无线蓝牙键盘的台式电脑,具有开/关机选项。 http://www.dell.com/in/business/p/vostro-470/pd
三星700T Notebook (Slate) http://www.samsung.com/uk/consumer/pc-peripherals/slate-pc/slate-pc/XE700T1A-A01UK
关闭键盘、蓝牙、将键盘从设备列表中移除等都没有帮助,KeyboardCapabilities.KeyboardPresent始终返回1。
我们是不是漏掉了什么,或者有没有其他API可以用来检测这样的变化?