0

I'd like to access the accelerometer on a windows device if it's available. However, I am not building the device for windows store. Is there a way to access this and other sensors from a desktop environment? What reference do I include?

4

2 回答 2

0

我认为您不需要为您的项目添加任何资源。您可能需要的唯一事情是调用所需的命名空间。哪个是 :

using Microsoft.Devices.Sensors;
using Microsoft.Xna.Framework;

你也可以看看这个链接

于 2013-08-05T08:35:21.393 回答
0

Windows 传感器和位置 API支持桌面使用,包括从 Windows 7 开始。

于 2013-07-11T21:29:48.020 回答