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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
keyDown
(int keycode) boolean
keyTyped
(char character) boolean
keyUp
(int keycode) boolean
mouseMoved
(int screenX, int screenY) boolean
scrolled
(float amountX, float amountY) boolean
touchCancelled
(int screenX, int screenY, int pointer, int button) boolean
touchDown
(int screenX, int screenY, int pointer, int button) boolean
touchDragged
(int screenX, int screenY, int pointer) boolean
touchUp
(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, wait
Methods 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:
keyDown
in interfacecom.badlogic.gdx.InputProcessor
-
keyUp
public boolean keyUp(int keycode) - Specified by:
keyUp
in interfacecom.badlogic.gdx.InputProcessor
-
keyTyped
public boolean keyTyped(char character) - Specified by:
keyTyped
in interfacecom.badlogic.gdx.InputProcessor
-
touchDown
public boolean touchDown(int screenX, int screenY, int pointer, int button) - Specified by:
touchDown
in interfacecom.badlogic.gdx.InputProcessor
-
touchUp
public boolean touchUp(int screenX, int screenY, int pointer, int button) - Specified by:
touchUp
in interfacecom.badlogic.gdx.InputProcessor
-
touchCancelled
public boolean touchCancelled(int screenX, int screenY, int pointer, int button) - Specified by:
touchCancelled
in interfacecom.badlogic.gdx.InputProcessor
-
touchDragged
public boolean touchDragged(int screenX, int screenY, int pointer) - Specified by:
touchDragged
in interfacecom.badlogic.gdx.InputProcessor
-
mouseMoved
public boolean mouseMoved(int screenX, int screenY) - Specified by:
mouseMoved
in interfacecom.badlogic.gdx.InputProcessor
-
scrolled
public boolean scrolled(float amountX, float amountY) - Specified by:
scrolled
in interfacecom.badlogic.gdx.InputProcessor
-