過去の質問を検索しても、同様の投稿は見つかりませんでした。
Blackberry Storms の MIDP でゲームを開発しています。私はBlackBerryGameCanvas
コールバック関数を使用していますtouchEvent
。引数として、のインスタンスを取得していますが、 likeTouchEvent
をリッスンしたいです。しかし、シミュレーターのタッチスクリーンでスワイプした後、結果としてnullになります:TouchGesture
Swipe
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.
}
まったく不可能な場合は、使用する必要があります
getMovePoints(int touch, int[] x, int[] y, int[] time)
..そしていくつかの計算。
誰でも確認できますか: Swipe TouchGesture は Blackberry Storm では機能しませんか?