Increase the sensibility of the shake event.

We are using the accelerometer event to catch the shake event, the users of our application will be children, but is too hard to produce the shake event in devices that will be a issue for children, we need to shake too hard the device to catch the shake event, we noticed that in iPad devices the difficult to produce the shake event is increased.

Here is our code:

function t:accelerometer(e)
if e.isShake then
–Do something
end
end

system.setAccelerometerInterval( 10 );
Runtime:addEventListener(“accelerometer”, t);

We added the setAccelerometerInterval to increase the accelerometer sensibility, but the accelerometer sensibility was not increased…

Can you help us to increase the accelerometer sensibility?
Is there some code to increase the sensibility?

[import]uid: 65458 topic_id: 11784 reply_id: 311784[/import]

Actually, system.setAccelerometerInterval( 10 ) reduces the sensitivity…

Try system.setAccelerometerInterval( 100 ); which is the max… [import]uid: 10478 topic_id: 11784 reply_id: 42896[/import]

I am also having problems with the shake detection not being as responsive as I would like. Making the accelerometer take ten times as many measurements MIGHT be a solution, but I wonder what the implications on performance might be?

Maybe checking for one of the Instant variables would be sufficient as a test for shaking. I changed my code to check if zInstant > 1 as opposed to isShake == true, and I seem to have noticed a slight improvement. It depends on your needs for the particular app of course. [import]uid: 70391 topic_id: 11784 reply_id: 68504[/import]