touch - Blackberry Storm Emulator - TouchGesture events not firing, how to get a Swipe to work? -
playing with a storm emulator and 4.7 JDE, for my life, I can not understand how the fire can fire Events in Emulator
The bottom is a touch event code for the Sample App, EmbeddedApadMoz. It sounds quite straightforward, but touch Gesture.getEvent () == TouchGesture.SWIPE does not seem to really register.
How can I register swipes in emulator? With my mouse, I try to left-click and drag, but it does not look like it.
/ ** * @see field # touchEvent (TouchEvent) * / Protected Boolean TouchAvent (TouchAvent Message) {Boolean = Distorted; If (_mapField.isClicked ()) {Touch Gesture Touch Gesture = Message.zstચર (); If (Touch gesture! = Null) {// If the user has a swipe signal then we will move the map accordingly I (if touchGesture.getEvent () == TouchGesture.SWIPE) {// Swipe the amount of swipe again So that we know how to move the map // away? Int magnitude = touchGesture.getSwipeMagnitude (); // Move the map in the direction of the swipe. Switches (Touch Zestary.JetsWeight Direction ()) {Case TouchJetcher. SWIP_NOR: _mapField.move (0, - magnitude); break; Case Touchgate SWIPE_SOUTH: _mapField.move (0, magnitude); break; Case Touchgate WIPE_EAST: _mapField.move (- magnitude, 0); break; Case Touchgate SWIPE_WEST: _mapField.move (magnitude, 0); break; } // We have used touch events IsConsumed = true; }}} Is the return console; }
Clicking on the screen by pressing the left mouse button ... Simulator (and also more) A real hurricane device, I think) When you click below on the screen, the touch gesture event will not spill.
What do you want to do right mouse button and drag, as the simulator performs a screen tap without the right mouse button click. In this way, you should take Touch Gogtchar to the fire.
It is difficult to point to the simulator, you have to move a little faster, but if you use the right mouse button you should be able to do this.
Comments
Post a Comment