Accelerometer Input on Windows Phone
Monkey Targets Forums/XNA/Accelerometer Input on Windows Phone
| ||
Hello, I'm trying to compile a small project which uses AccelY() for input but fails to compile for WP7. The output is as follows: -------------------------------------------------------- Error 1 'gxtkInput' does not contain a definition for 'AccelY' and no extension method 'AccelY' accepting a first argument of type 'gxtkInput' could be found (are you missing a using directive or an assembly reference?) -------------------------------------------------------- So I basically have three questions: 1.- Am I the only one getting this? 2.- If not, is the issue currently being addressed? 3.- Any known way to solve it? |
| ||
1. No I'm getting this too. No Accelerometer supported under xna? |
| ||
I know this is a very old topic but the issue was not solved yet. Is there any plans to add accelerometer support to xna in the near future? Edit: I am now trying to add accelerometer support to the generated solution. In order to take advantage of the accelerometer you need to use this refrence: using Microsoft.Devices.Sensors; However, this gives me the following error: The type or namespace name 'Devices' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) Does anyone know what am I doing wrong? |
| ||
Guys - see here for an implementation: http://www.monkeycoder.co.nz/Community/posts.php?topic=2309 |