Hi,
I didn't find any similar posts when searching previous questions.
I am developing a game in MIDP for Blackberry Storms. I am using a BlackBerryGameCanvas
and using the callback function touchEvent
. As an argument, I'm getting an instance of TouchEvent
But I want to listen for a TouchGesture
like Swipe
. But after doing swipe in simulator touch screen I am getting null as result:
public void touchEvent(TouchEvent message) {
TouchGesturenow = message.getGesture();
//always getting null as a result
//according to API when user does not perform any gesture
//operation then it would return null otherwise reference
//but here I have performed a swipe gesture then also it is returning null.
}
If it is not possible at all then I have to use
getMovePoints(int touch, int[] x, int[] y, int[] time)
..and some calculation .
Can anybody confirm for me: does TouchGesture not work with MIDP?