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?
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?