Package com.badlogic.gdx

Examples of com.badlogic.gdx.InputMultiplexer


  }

  @Override
  public void create() {
    ShaderLoader.BasePath = "shaders/";
    plex = new InputMultiplexer();
    plex.addProcessor( this );
    Gdx.input.setInputProcessor( plex );
    post = new PostProcessing();

    createScene();
View Full Code Here


        gameStateManager.instanceHashMap.get("UserInterface").render(rendermanager);
    }

    @Override
    protected InputMultiplexer buildInputMultiplexer() {
        return new InputMultiplexer(gameStateManager.instanceHashMap.get("UserInterface"), gameStateManager.instanceHashMap.get("MapDisplay"));
    }
View Full Code Here

        gameStateManager.instanceHashMap.get("Tutorial").render(rendermanager);
    }

    @Override
    protected InputMultiplexer buildInputMultiplexer() {
        return new InputMultiplexer(gameStateManager.instanceHashMap.get("Tutorial"));
    }
View Full Code Here

        gameStateManager.instanceHashMap.get("UserInterface").render(rendermanager);
    }

    @Override
    protected InputMultiplexer buildInputMultiplexer() {
        return new InputMultiplexer(gameStateManager.instanceHashMap.get("MapDisplay"));
    }
View Full Code Here

   */
  public Scene(Viewport viewport, SpriteBatch batch)
  {
    super(viewport, batch);

    inputMultiplexer = new InputMultiplexer(this);

    nodes = new Array<Node>(DEFAULT_LAYER_CAPACITY);
  }
View Full Code Here

      effectPanel.createDefaultEmitter(ControllerType.Billboard, true, true);
    }

    @Override
    public void resize (int width, int height) {
      Gdx.input.setInputProcessor(new InputMultiplexer(ui, cameraInputController));
      Gdx.gl.glViewport(0, 0, width, height);

      worldCamera.viewportWidth = width;
      worldCamera.viewportHeight = height;
      worldCamera.update();
View Full Code Here

    skeleton = new Skeleton(skeleton);
    skeleton.setX(ui.prefs.getFloat("x", Gdx.graphics.getWidth() / 2));
    skeleton.setY(ui.prefs.getFloat("y", Gdx.graphics.getHeight() / 4));
    skeleton.updateWorldTransform();

    Gdx.input.setInputProcessor(new InputMultiplexer(ui.stage, new InputAdapter() {
      public boolean touchDown (int screenX, int screenY, int pointer, int button) {
        touchDragged(screenX, screenY, pointer);
        return true;
      }
View Full Code Here

            skeleton.setSlotsToSetupPose();
          }
        }
      });

      Gdx.input.setInputProcessor(new InputMultiplexer(stage, new InputAdapter() {
        public boolean touchDown (int screenX, int screenY, int pointer, int button) {
          touchDragged(screenX, screenY, pointer);
          return false;
        }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.InputMultiplexer

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.