Package com.jme3.input

Examples of com.jme3.input.InputManager.addListener()


        this.model = model;
        if (model != null) {
            AnimControl control = model.getControl(AnimControl.class);
            this.animControl = control;
            GameNameGoesHere app = GameNameGoesHere.getApp();
            control.addListener(app.getAnimManager());
            createChannels();

            animControl.getChannel(AnimConf.UPPER_BODY).setAnim("Walk");

            // animControl.getChannel(AnimConf.UPPER_BODY).setAnim("Idle"); //need init animation
View Full Code Here


    @Override
    public void initialize(AppStateManager stateManager, Application app) {
        if (!super.isInitialized()){
            InputManager inputManager = app.getInputManager();
            inputManager.addMapping("ScreenShot", new KeyTrigger(KeyInput.KEY_SYSRQ));
            inputManager.addListener(this, "ScreenShot");

            List<ViewPort> vps = app.getRenderManager().getPostViews();
            ViewPort last = vps.get(vps.size()-1);
            last.addProcessor(this);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.