This forum is read only and just serves as an archive. If you have any questions, please post them on

1 decade ago by peardox

I'm using the gyroscope on BlackBerry 10 DevAlpha and trapping the device

All that works fine - I can easily get an alert or whatever showing I just did something

I need to fire an action based on what happened to the device's position

For example - if you tilt the device forwards from it's current position sharply this generates a jump signal

My problem is how I feed that into ImpactJS - i.e. I just pressed the 'jump key'

I've tried event dispatching but that don't work (telling the browser I just pressed the 'z' key in my case)

Any hints?

1 decade ago by Arantor

Presumably you're using the accelerometer and binding it that way?

You could just say 'if Z was pressed, or acceleration > given amount, do this'
Page 1 of 1
« first « previous next › last »