Package com.jme3.input.controls

Examples of com.jme3.input.controls.KeyTrigger


        ambLight.setColor(new ColorRGBA(0.1f, 0.1f, 0.1f, 1f));
        rootNode.addLight(ambLight);
     
     
        inputManager.addListener(this, "print_scenegraph", "print_cam_location", "print_bboxes", "toggle_navmesh", "toggle_navbodermesh", "nextMesh");
        inputManager.addMapping("print_scenegraph", new KeyTrigger(KeyInput.KEY_F6));
        inputManager.addMapping("print_cam_location", new KeyTrigger(KeyInput.KEY_F1));
        inputManager.addMapping("print_bboxes", new KeyTrigger(KeyInput.KEY_F7));
        inputManager.addMapping("toggle_navmesh", new KeyTrigger(KeyInput.KEY_F8));
        inputManager.addMapping("nextMesh", new KeyTrigger(KeyInput.KEY_F9));
        inputManager.addMapping("toggle_navbodermesh", new KeyTrigger(KeyInput.KEY_F10));
       
//        rootNode.attachChild(bboxes);
        rootNode.attachChild(nav);
      rootNode.attachChild(border);
     }
View Full Code Here


       System.out.println("tile z=176 should be world 8192:"+getWorldPositionOfZTile(176));
       System.out.println("tile z=177 should be world 8448:"+getWorldPositionOfZTile(177));*/
        NavTestHelper.debugShowBox(assetManager, debugNodes, new Vector3f(-9984f+IArea.TERRAIN_SIZE_HALF,0f,8448f-IArea.TERRAIN_SIZE_HALF), ColorRGBA.LightGray, IArea.TERRAIN_SIZE_HALF, 0.1f, IArea.TERRAIN_SIZE_HALF);

        inputManager.addListener(this, "print_scenegraph");
        inputManager.addMapping("print_scenegraph", new KeyTrigger(KeyInput.KEY_F6));

    }
View Full Code Here

        rootNode.addLight(dr);
        setupScene();
       
        inputManager.addListener(this, "print_scenegraph", "add_model", "remove_model", "toggle_singleStep", "advance_singleStep");
        inputManager.addMapping("print_scenegraph", new KeyTrigger(KeyInput.KEY_F6));
        inputManager.addMapping("add_model", new KeyTrigger(KeyInput.KEY_F9));
        inputManager.addMapping("remove_model", new KeyTrigger(KeyInput.KEY_F10));
       
        inputManager.addMapping("toggle_singleStep", new KeyTrigger(KeyInput.KEY_1));
        inputManager.addMapping("advance_singleStep", new KeyTrigger(KeyInput.KEY_0));
        JMEAnimationController.singleStep = false;
    }
View Full Code Here

        setupScene();
       
        inputManager.addListener(this, "print_bboxes", "add_model", "remove_model""next_entity", "prev_entity");
       
        inputManager.addMapping("print_bboxes", new KeyTrigger(KeyInput.KEY_F6));
       
        inputManager.addMapping("add_model", new KeyTrigger(KeyInput.KEY_F9));
        inputManager.addMapping("remove_model", new KeyTrigger(KeyInput.KEY_F10));
       
        inputManager.addMapping("next_entity", new KeyTrigger(KeyInput.KEY_ADD));
        inputManager.addMapping("prev_entity", new KeyTrigger(KeyInput.KEY_SUBTRACT));
    }
View Full Code Here

        rootNode.addLight(dr);
        setupScene();
       
        inputManager.addListener(this, "print_scenegraph", "add_model", "remove_model", "toggle_singleStep", "advance_singleStep");
        inputManager.addMapping("print_scenegraph", new KeyTrigger(KeyInput.KEY_F6));
        inputManager.addMapping("add_model", new KeyTrigger(KeyInput.KEY_F9));
        inputManager.addMapping("remove_model", new KeyTrigger(KeyInput.KEY_F10));
       
        inputManager.addMapping("toggle_singleStep", new KeyTrigger(KeyInput.KEY_1));
        inputManager.addMapping("advance_singleStep", new KeyTrigger(KeyInput.KEY_0));
        JMEAnimationController.singleStep = false;
    }
View Full Code Here

        setupScene();
       
        inputManager.addListener(this, "print_bboxes", "add_model", "remove_model""next_entity", "prev_entity");
       
        inputManager.addMapping("print_bboxes", new KeyTrigger(KeyInput.KEY_F6));
       
        inputManager.addMapping("add_model", new KeyTrigger(KeyInput.KEY_F9));
        inputManager.addMapping("remove_model", new KeyTrigger(KeyInput.KEY_F10));
       
        inputManager.addMapping("next_entity", new KeyTrigger(KeyInput.KEY_ADD));
        inputManager.addMapping("prev_entity", new KeyTrigger(KeyInput.KEY_SUBTRACT));
    
        flyCam.setEnabled(false);
        inputManager.setCursorVisible(true);
    }
View Full Code Here

        rootNode.addLight(dr);
        setupScene();
       
        inputManager.addListener(this, "print_scenegraph", "add_model", "remove_model", "toggle_singleStep", "advance_singleStep", "next_entity", "prev_entity");
        inputManager.addMapping("print_scenegraph", new KeyTrigger(KeyInput.KEY_F6));
        inputManager.addMapping("add_model", new KeyTrigger(KeyInput.KEY_F9));
        inputManager.addMapping("remove_model", new KeyTrigger(KeyInput.KEY_F10));
       
        inputManager.addMapping("toggle_singleStep", new KeyTrigger(KeyInput.KEY_1));
        inputManager.addMapping("advance_singleStep", new KeyTrigger(KeyInput.KEY_0));
        JMEAnimationController.singleStep = false;
       
        inputManager.addMapping("next_entity", new KeyTrigger(KeyInput.KEY_ADD));
        inputManager.addMapping("prev_entity", new KeyTrigger(KeyInput.KEY_SUBTRACT));
    }
View Full Code Here

          this.walker = e;
        }
        System.out.println("Entity placed");
       
        inputManager.addListener(this, "print_scenegraph", "print_cam_location", "print_bboxes", "toggle_navmesh");
        inputManager.addMapping("print_scenegraph", new KeyTrigger(KeyInput.KEY_F6));
        inputManager.addMapping("print_cam_location", new KeyTrigger(KeyInput.KEY_F1));
        inputManager.addMapping("print_bboxes", new KeyTrigger(KeyInput.KEY_F7));
        inputManager.addMapping("toggle_navmesh", new KeyTrigger(KeyInput.KEY_F8));
       
    if(pc.path != null)
      NavTestHelper.debugShowPath(assetManager, debugNodes, pc.path);
   
View Full Code Here

          printComponents();
        }
      }
    }"print_scenegraph", "print_bboxes", "toggle_navmesh", "drop_a_box", "toggle_navbodermesh", "print_components");
       
        inputManager.addMapping("print_scenegraph", new KeyTrigger(KeyInput.KEY_F6));
        inputManager.addMapping("print_bboxes", new KeyTrigger(KeyInput.KEY_F7));
        inputManager.addMapping("toggle_navmesh", new KeyTrigger(KeyInput.KEY_F8));
        //TODO the box does problems with picking, suddenly it has no mesh when dropped !?!?! Thus commented out
//        inputManager.addMapping("drop_a_box", new KeyTrigger(KeyInput.KEY_F9));
        inputManager.addMapping("toggle_navbodermesh", new KeyTrigger(KeyInput.KEY_F10));
        inputManager.addMapping("print_components", new KeyTrigger(KeyInput.KEY_F11));
  }
View Full Code Here

    // TODO Auto-generated constructor stub
  }

  @Override
  public void addKeyMapping(InputManager man) {
     man.addMapping("EmoteAction", new KeyTrigger(KeyInput.KEY_E));
       man.addListener(this, "EmoteAction");
  }
View Full Code Here

TOP

Related Classes of com.jme3.input.controls.KeyTrigger

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.