07-13-2012 03:53 AM
I'm working with pinch gestures. The BB SDK supports pinch gestures from Blackberry OS 6 (viz. TouchGesture.PINCH_BEGIN,TouchGesture.PINCH_UPDATE and TouchGesture.PINCH_END events via TouchEvent).
How can I get such event notifications in Blackberry OS 5 (Strom 2)?
07-13-2012 04:35 AM
07-13-2012 05:13 AM
07-13-2012 05:24 AM
Thinks like "TouchGesture.PINCH_BEGIN" are just magic numbers, so you just code the number correctly, or perhaps better, use some sort of constant that has the correct value. You can find the values youneed in the JavaDocs.
But as soon as you start trying to make OS 6.0 specific method calls, things start getting impossible. In which case you need two builds.
07-14-2012 02:03 PM
You could still listen for touch events, and then identify the pinch gestures yourself. Of course this is not easy.
07-14-2012 02:25 PM
I wrote this a while ago, but it isn't perfect and requires changing the logic you are using to handle touch results.
It also doesn't do rotation or work on non-touchscreen devices just yet.
UI events are individual function calls instead of one large one.