How do I access the Accelerometer and Gyroscope on my Surface Pro?

I’m trying to make a simple tilt-control game.

I figured that the easiest way to test motion controls as I code them was to work on my Surface Pro, since it’s basically a full PC with Accelerometer and Gyro. Problem is, Unity doesn’t seem to be recognizing these sensors when I test the game in the editor.

I tried the test code from the script reference on a cube “transform.rotation = Input.gyro.attitude;” And nothing happens. I tried printing the attitude and Input.acceleration and all I get are “(0.0, 0.0, 0.0, 1.0)” and “(0.0, 0.0, 0.0)” respectively, no matter how much I twist and shake the device.

I do currently have my build settings on Windows Store Apps.

So… how can I make Unity recognize my Surface’s sensors?

I found this. When running in unity editor via the Play button the accelerometer doesn’t work. I built it (as a Windows Universal store app, via visual studio), then it worked correctly as a standalone app

Have you tried this?
Input.gyro.enabled = true;