Package com.jme3.input.controls

Examples of com.jme3.input.controls.KeyTrigger


    // TODO Auto-generated constructor stub
  }

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


    // TODO Auto-generated constructor stub
  }

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

    // TODO Auto-generated constructor stub
  }

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

    // TODO Auto-generated constructor stub
  }

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

    super(id, actionName);
  }

  @Override
  public void addKeyMapping(InputManager man) {
     man.addMapping(name, new KeyTrigger(KeyInput.KEY_A));//new MouseButtonTrigger(MouseInput.BUTTON_LEFT));
       man.addListener(this, name);
  }
View Full Code Here

    super(id, actionName);
  }

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

    // TODO Auto-generated constructor stub
  }

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

    @Override
    public void setEnabled(boolean enabled) {
        super.setEnabled(enabled);
        if (enabled) {
            application.getInputManager().addMapping("W", new KeyTrigger(KeyInput.KEY_H));
            application.getInputManager().addMapping("N", new KeyTrigger(KeyInput.KEY_K));
            application.getInputManager().addMapping("S", new KeyTrigger(KeyInput.KEY_J));
            application.getInputManager().addMapping("E", new KeyTrigger(KeyInput.KEY_L));
            // wtf? where is this listener being deleted?
            application.getInputManager().addListener(new ActionListener() {
                @Override
                public void onAction(String name, boolean isPressed, float tpf) {
                    if (model.player != null && isPressed) {
View Full Code Here

        guiViewPort.addProcessor(niftyDisplay);

        stateManager.attach(gameState);

        inputManager.setCursorVisible(true);
        inputManager.addMapping("menu", new KeyTrigger(KeyInput.KEY_F6));
        inputManager.addListener(new ActionListener() {
            @Override
            public void onAction(String name, boolean isPressed, float tpf) {
                // toggle game state
                if (isPressed)
View Full Code Here

        this.app = app;
        this.inputManager = app.getInputManager();
       
        if (app.getInputManager() != null) {
            inputManager.addMapping(INPUT_MAPPING_CAMERA_POS, new KeyTrigger(KeyInput.KEY_C));
            inputManager.addMapping(INPUT_MAPPING_MEMORY, new KeyTrigger(KeyInput.KEY_M));
           
            inputManager.addListener(keyListener,
                                     INPUT_MAPPING_CAMERA_POS,
                                     INPUT_MAPPING_MEMORY);                  
        }              
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.