Class storyLineInputComponent
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.input.InputComponent
com.deco2800.game.components.storyline.storyLineInputComponent
- All Implemented Interfaces:
com.badlogic.gdx.input.GestureDetector.GestureListener,com.badlogic.gdx.InputProcessor
Input handler for the storyline UI for keyboard input.
This input handler only uses keyboard input.
-
Field Summary
Fields inherited from class com.deco2800.game.input.InputComponent
priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleankeyUp(int key) Triggers storyline UI events on specific keycodes.Methods inherited from class com.deco2800.game.input.InputComponent
create, dispose, fling, getPriority, keyDown, keyTyped, longPress, mouseMoved, pan, panStop, pinch, pinchStop, pinchStopHandled, scrolled, setPriority, tap, touchDown, touchDown, touchDragged, touchUp, zoomMethods inherited from class com.deco2800.game.components.Component
earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
storyLineInputComponent
public storyLineInputComponent()
-
-
Method Details
-
keyUp
public boolean keyUp(int key) Triggers storyline UI events on specific keycodes.- Specified by:
keyUpin interfacecom.badlogic.gdx.InputProcessor- Overrides:
keyUpin classInputComponent- Returns:
- whether the input was processed
- See Also:
-
InputProcessor.keyUp(int)
-