Package org.jdesktop.wonderland.client.jme.input

Examples of org.jdesktop.wonderland.client.jme.input.KeyEvent3D


     * Process key events. No picking is actually performed. Key events are delivered starting at the
     * entity that has the keyboard focus.
     */
    void pickKeyEvent (KeyEvent awtEvent) {
  logger.fine("Picker: received awt event = " + awtEvent);
  KeyEvent3D keyEvent = (KeyEvent3D) createWonderlandEvent(awtEvent);
  eventDistributor.enqueueEvent(keyEvent);
    }
View Full Code Here


                    if (awtMe.getID() == MouseEvent.MOUSE_DRAGGED && (awtMe.getModifiersEx() & onmask)==onmask ) {
                        processRotations(me);
                        updateRotations = true;
                    }
                } else if (e instanceof KeyEvent3D) {
                    KeyEvent3D ke = (KeyEvent3D)e;
                    processKeyEvent(ke);
                }
            }
            events.clear();
        }
View Full Code Here

        }

        @Override
        public void commitEvent(Event event) {
            logger.fine("Interior key commitEvent, event = " + event);
            KeyEvent3D ke3d = (KeyEvent3D) event;
            final KeyEvent ke = (KeyEvent) ke3d.getAwtEvent();

            /* For ortho subwindow debugging -- TODO: doesn't work. See bug 203
            if (ke3d.isPressed() &&
                ke.getKeyCode() == KeyEvent.VK_F11 &&
                (ke.getModifiersEx() & KeyEvent.SHIFT_DOWN_MASK) != 0) {
View Full Code Here

            return new Class[]{KeyEvent3D.class};
        }

        @Override
        public void commitEvent(Event event) {
            KeyEvent3D ke3d = (KeyEvent3D) event;
            if (ke3d.isPressed()) {
                KeyEvent ke = (KeyEvent) ke3d.getAwtEvent();
                if (ke.getKeyCode() == KeyEvent.VK_P) {
                    printEntitySceneGraphs(App2DCellRendererJME.this.getEntity(), 0);
                }
            }
        }
View Full Code Here

            return new Class[]{KeyEvent3D.class};
        }

        @Override
        public void commitEvent(Event event) {
            KeyEvent3D ke3d = (KeyEvent3D) event;
            if (ke3d.isPressed()) {
                KeyEvent ke = (KeyEvent) ke3d.getAwtEvent();
                if (ke.getKeyCode() == KeyEvent.VK_O) {
                    printOrthoNodes();
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.jme.input.KeyEvent3D

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.