Package net.rim.device.api.ui

Examples of net.rim.device.api.ui.TouchGesture


            _output.append(time);
            _output.append("\n");
            break;

        case TouchEvent.GESTURE:
            final TouchGesture gesture = message.getGesture();
            switch (gesture.getEvent()) {
            case TouchGesture.SWIPE:
                _output.append("The screen was swiped.\n");
                break;

            case TouchGesture.TAP:
View Full Code Here


        boolean tappedCenter = false;

        switch (message.getEvent()) {
        case TouchEvent.GESTURE: {
            final TouchGesture gesture = message.getGesture();

            if (gesture.getEvent() == TouchGesture.SWIPE) {
                final int direction = gesture.getSwipeDirection();
                if (direction == TouchGesture.SWIPE_NORTH
                        || direction == TouchGesture.SWIPE_SOUTH) {
                    // Swipe up or down to shrink or grow
                    _level.getCharacter().shrink();
                }
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.TouchGesture

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.