Package de.tum.cit.ase.editor.input
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.
-
Field Summary
Fields inherited from interface de.tum.cit.ase.editor.input.ShortcutAdapter
pressedKeys -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleankeyDown(int keycode) booleankeyTyped(char character) booleankeyUp(int keycode) booleanmouseMoved(int screenX, int screenY) booleanscrolled(float amountX, float amountY) booleantouchCancelled(int screenX, int screenY, int pointer, int button) booleantouchDown(int screenX, int screenY, int pointer, int button) booleantouchDragged(int screenX, int screenY, int pointer) booleantouchUp(int screenX, int screenY, int pointer, int button) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.tum.cit.ase.editor.input.ShortcutAdapter
addKey, isShortcut, isShortcut, isShortcut, removeKey
-
Constructor Details
-
ToolInputAdapter
public ToolInputAdapter()
-
-
Method Details
-
keyDown
public boolean keyDown(int keycode) - Specified by:
keyDownin interfacecom.badlogic.gdx.InputProcessor
-
keyUp
public boolean keyUp(int keycode) - Specified by:
keyUpin interfacecom.badlogic.gdx.InputProcessor
-
keyTyped
public boolean keyTyped(char character) - Specified by:
keyTypedin interfacecom.badlogic.gdx.InputProcessor
-
touchDown
public boolean touchDown(int screenX, int screenY, int pointer, int button) - Specified by:
touchDownin interfacecom.badlogic.gdx.InputProcessor
-
touchUp
public boolean touchUp(int screenX, int screenY, int pointer, int button) - Specified by:
touchUpin interfacecom.badlogic.gdx.InputProcessor
-
touchCancelled
public boolean touchCancelled(int screenX, int screenY, int pointer, int button) - Specified by:
touchCancelledin interfacecom.badlogic.gdx.InputProcessor
-
touchDragged
public boolean touchDragged(int screenX, int screenY, int pointer) - Specified by:
touchDraggedin interfacecom.badlogic.gdx.InputProcessor
-
mouseMoved
public boolean mouseMoved(int screenX, int screenY) - Specified by:
mouseMovedin interfacecom.badlogic.gdx.InputProcessor
-
scrolled
public boolean scrolled(float amountX, float amountY) - Specified by:
scrolledin interfacecom.badlogic.gdx.InputProcessor
-