Package com.csse3200.game.input
Class EngineerInputComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.input.InputComponent
com.csse3200.game.input.EngineerInputComponent
- All Implemented Interfaces:
com.badlogic.gdx.input.GestureDetector.GestureListener,com.badlogic.gdx.InputProcessor
-
Field Summary
Fields inherited from class com.csse3200.game.input.InputComponent
priority -
Constructor Summary
ConstructorsConstructorDescriptionEngineerInputComponent(com.badlogic.gdx.Game game, com.badlogic.gdx.graphics.Camera camera) -
Method Summary
Modifier and TypeMethodDescriptionbooleankeyDown(int keycode) voidsetMoveClicked(boolean moveClicked) booleantouchDown(int screenX, int screenY, int pointer, int button) Methods inherited from class com.csse3200.game.input.InputComponent
create, dispose, fling, getPriority, keyTyped, keyUp, longPress, mouseMoved, pan, panStop, pinch, pinchStop, pinchStopHandled, scrolled, setPriority, tap, touchDown, touchDragged, touchUp, zoomMethods inherited from class com.csse3200.game.components.Component
earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
EngineerInputComponent
public EngineerInputComponent(com.badlogic.gdx.Game game, com.badlogic.gdx.graphics.Camera camera)
-
-
Method Details
-
touchDown
public boolean touchDown(int screenX, int screenY, int pointer, int button) - Specified by:
touchDownin interfacecom.badlogic.gdx.InputProcessor- Overrides:
touchDownin classInputComponent- See Also:
-
InputProcessor.touchDown(int, int, int, int)
-
keyDown
public boolean keyDown(int keycode) - Specified by:
keyDownin interfacecom.badlogic.gdx.InputProcessor- Overrides:
keyDownin classInputComponent- See Also:
-
InputProcessor.keyDown(int)
-
setMoveClicked
public void setMoveClicked(boolean moveClicked)
-