02-10-2011 10:33 PM
Is there a way to test in the simulater how it would act with the accelerometer?
The only way I can think is to create a rectangle and use the mouse click/drag.
Solved! Go to Solution.
02-10-2011 10:36 PM
there currently is no way to test for the accelorometer at this time. hopefully it will be available in the next release. hope that clears things up. good luck!
02-11-2011 07:46 AM
You can create "driver" code to simulate accelerometer events. I did this for the geo location. You create a class with an array of data that you want to send to the instantiated attribute for listening to accelerometer events. In the class you define a timer event (fixed or random) to read the next element in the array, create the appropriate accelerometer event and dispatch to the attribute awaiting for those events. When you get to the end of the array, start over.
You could also randomize what gets sent to the accelerometer listener.
In my app, I have a checkbox to start and stop this driver. Production mode, I hide the checkbox so it would not get run by the user.