Package com.badlogic.gdx

Examples of com.badlogic.gdx.InputAdapter


    skeleton = new Skeleton(skeletonData);
    skeleton.setX(250);
    skeleton.setY(20);
    skeleton.updateWorldTransform();

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


    if (name.equals("goblins")) skeleton.setSkin("goblin");
    skeleton.setToSetupPose();
    skeleton = new Skeleton(skeleton);
    skeleton.updateWorldTransform();

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

  private InputProcessor mockInputProcessor;

  @Override
  public InputProcessor getInputProcessor() {
    if (mockInputProcessor == null) {
      mockInputProcessor = new InputAdapter();
    }
    return mockInputProcessor;
  }
View Full Code Here

  private InputProcessor mockInputProcessor;

  @Override
  public InputProcessor getInputProcessor() {
    if (mockInputProcessor == null) {
      mockInputProcessor = new InputAdapter();
    }
    return mockInputProcessor;
  }
View Full Code Here

    });
   
    // Set animation on track 0.
    state.setAnimation(0, "run", true);

    Gdx.input.setInputProcessor(new InputAdapter() {
      final Vector3 point = new Vector3();

      public boolean touchDown (int screenX, int screenY, int pointer, int button) {
        camera.unproject(point.set(screenX, screenY, 0)); // Convert window to world coordinates.
        bounds.update(skeleton, true); // Update SkeletonBounds with current skeleton bounding box positions.
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.InputAdapter

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.