Class ToolInputAdapter

java.lang.Object
de.tum.cit.ase.editor.input.ToolInputAdapter
All Implemented Interfaces:
com.badlogic.gdx.InputProcessor, ShortcutAdapter
Direct Known Subclasses:
EditorTool

public abstract class ToolInputAdapter extends Object implements com.badlogic.gdx.InputProcessor, ShortcutAdapter
The ToolInputAdapter class is an abstract class that implements the InputProcessor and ShortcutAdapter interfaces. It provides default implementations for the methods defined in those interfaces.
  • Constructor Details

    • ToolInputAdapter

      public ToolInputAdapter()
  • Method Details

    • keyDown

      public boolean keyDown(int keycode)
      Specified by:
      keyDown in interface com.badlogic.gdx.InputProcessor
    • keyUp

      public boolean keyUp(int keycode)
      Specified by:
      keyUp in interface com.badlogic.gdx.InputProcessor
    • keyTyped

      public boolean keyTyped(char character)
      Specified by:
      keyTyped in interface com.badlogic.gdx.InputProcessor
    • touchDown

      public boolean touchDown(int screenX, int screenY, int pointer, int button)
      Specified by:
      touchDown in interface com.badlogic.gdx.InputProcessor
    • touchUp

      public boolean touchUp(int screenX, int screenY, int pointer, int button)
      Specified by:
      touchUp in interface com.badlogic.gdx.InputProcessor
    • touchCancelled

      public boolean touchCancelled(int screenX, int screenY, int pointer, int button)
      Specified by:
      touchCancelled in interface com.badlogic.gdx.InputProcessor
    • touchDragged

      public boolean touchDragged(int screenX, int screenY, int pointer)
      Specified by:
      touchDragged in interface com.badlogic.gdx.InputProcessor
    • mouseMoved

      public boolean mouseMoved(int screenX, int screenY)
      Specified by:
      mouseMoved in interface com.badlogic.gdx.InputProcessor
    • scrolled

      public boolean scrolled(float amountX, float amountY)
      Specified by:
      scrolled in interface com.badlogic.gdx.InputProcessor