Answered by:
Accelerometer doesn't responds

Question
-
Hi,
I want use accelerometer in my windows 8 metro style app in a way that it when i tilt my tablets down ,some of my app element say a ball moves rightwards.I run the sample on http://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh465272(v=win.10).aspx to get an idea.we have one option called simulator in debug option but nothing i can do with the emulator running after then.Clicking on "simulator" does nothing more than showing default things till my current state.how do i do things like tilting my tablets right side down????
I am not getting exactly how do i give inputs like tilting of tablets or shaking of it???
Regards,
sushma rai
Microsoft Student Partner,India
- Moved by Min ZhuMember Monday, April 16, 2012 3:19 AM move for better support (From:Building Metro style apps with C# or VB )
Friday, April 13, 2012 7:19 AM
Answers
-
Sushma Rai,
We do not have a sensor simulator. You would need an actual sensor to test your application with. Do you have an external or internal Windows 8 sensor?
Best Wishes - Eric
- Marked as answer by MsSushma Monday, July 23, 2012 4:08 AM
Tuesday, April 24, 2012 4:34 PMModerator
All replies
-
Hello Sushma,
I am trying to involve someone familiar with this topic to further look at this issue.
Thanks.
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
Thursday, April 19, 2012 7:41 AMModerator -
Sushma,
Have you tried the inclinometer sample? Are you programming in JavaScript or C#? In JavaScript Blend works really well for inclinometer, simple orientation, compass and gyro. Hitting F5 and running the application works for all sensors. In C# blend does not interact with the sensors. However using F5 and running the app will work.
Best Wishes - Eric
Thursday, April 19, 2012 5:16 PMModerator -
Sushma,
Are you wanting to have Blend or Visual Studio 11 simulate a sensor? Or do you have an actual sensor or device with a sensor that you would like to write a Metro style app for? If so which device are you using?
Best Wishes - Eric
Thursday, April 19, 2012 5:25 PMModerator -
I want to use Visual studio 11 simluator as a sensor on my laptop.
Sushma Rai MSP,India
Tuesday, April 24, 2012 3:45 PM -
Eric Hanson,
I am programming in c#.and i want to use accelerometer such that some of my elements of my game say a dice moves right side when i tilt tablets rightside down and similar for other direction movements and also light shaking of tablets to a get a random number on the dice.
I haven't used inclinometer so far.
Thanks
Sushma Rai MSP,India
Tuesday, April 24, 2012 3:55 PM -
Vicky song,
Thanks for the help.
Sushma Rai MSP,India
Tuesday, April 24, 2012 3:59 PM -
Sushma Rai,
We do not have a sensor simulator. You would need an actual sensor to test your application with. Do you have an external or internal Windows 8 sensor?
Best Wishes - Eric
- Marked as answer by MsSushma Monday, July 23, 2012 4:08 AM
Tuesday, April 24, 2012 4:34 PMModerator -
Eric Hanson,
No sir I don't have any external or internal windows 8 sensor.Means i can't test such apps.any other resources or alternatives for it?
Thanks.
Sushma Rai MSP,India
Saturday, April 28, 2012 4:35 AM -
Sushma Rai,
I am unaware of any simulators on the market that would allow you to test this without a sensor.
Best Wishes - Eric
Saturday, April 28, 2012 5:20 AMModerator -
ive also found this to be an issue when developing metro apps because the tablet simulator doesnt seem to simulate any of the tablet features including orientation as i have tried the orientation samples which are meant to display the current tablet orientation but it doesnt work in the simulator just like tilt and turn doesnt work which makes it very hard to create and test apps which use these features.
cant the simulator be modified to fire these events? the external sensor must use some software or drivers to fire a accelerometer events so wouldnt it be possible to perhaps add some multi-directional arrow buttons around the simulator to simulate accelerometer usage for example pressing the left arrow would simulator tilting the tablet to the left and so on.
think of the popular game cut the rope where to play the game you must turn the tablet to guide the flame in the direction of the rope how would one go about creating such a game with no way of testing sensor input?
Saturday, April 28, 2012 1:52 PM -
Amy Gx,
very true.I don't think this issue would have been unnoticed by the developer.Windows 8 is meant for touch-sensitive devices and it is pretty natural to think of orienting a device for the current computing experience.It is much more interacting than touching a device.people get completely involved when they use such orientations or tilting say if we play a game.Looking for the urgent modification in the final release of visual studio 2011.
Sushma Rai MSP,India
Saturday, April 28, 2012 2:26 PM -
Amy and Sushami,
I have passed you feedback on.
Best Wishes - Eric
Tuesday, May 1, 2012 2:41 PMModerator -
The Windows Phone emulators have Tilt Simulation, so we can test our WP7 tilt and orientation Applications, without a device.
Not having Tilt sensor representation in the Visual Studio Windows 8 Simulator is just plain dumb. - I am surprised that Microsoft are so slow on realising this.
Silverlight an XNA Fan
Friday, August 3, 2012 10:46 PM -
hi
wondered if there's a schedule for a sensor simulator
thanks
Lior
Monday, August 6, 2012 4:53 PM