Package fr.formiko.kokcinelo
Class InputCore
java.lang.Object
fr.formiko.kokcinelo.InputCore
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor
React to user inputs.
- Since:
- 0.1
- Version:
- 0.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleankeyDown(int keycode) booleankeyTyped(char character) booleankeyUp(int keycode) React to key pressed once.booleanmouseMoved(int x, int y) booleanscrolled(float amountX, float amountY) Zoom in or out for the camera.booleantouchDown(int x, int y, int pointer, int button) booleantouchDragged(int x, int y, int pointer) booleantouchUp(int x, int y, int pointer, int button)
-
Constructor Details
-
InputCore
Main constructor.- Parameters:
screen- screen to interact with
-
-
Method Details
-
scrolled
public boolean scrolled(float amountX, float amountY) Zoom in or out for the camera.- Specified by:
scrolledin interfacecom.badlogic.gdx.InputProcessor- See Also:
-
InputProcessor.scrolled(float, float)
-
keyUp
public boolean keyUp(int keycode) React to key pressed once.- Specified by:
keyUpin interfacecom.badlogic.gdx.InputProcessor- Parameters:
keycode- the key pressed
-
keyDown
public boolean keyDown(int keycode) - Specified by:
keyDownin interfacecom.badlogic.gdx.InputProcessor
-
keyTyped
public boolean keyTyped(char character) - Specified by:
keyTypedin interfacecom.badlogic.gdx.InputProcessor
-
touchDown
public boolean touchDown(int x, int y, int pointer, int button) - Specified by:
touchDownin interfacecom.badlogic.gdx.InputProcessor
-
touchUp
public boolean touchUp(int x, int y, int pointer, int button) - Specified by:
touchUpin interfacecom.badlogic.gdx.InputProcessor
-
touchDragged
public boolean touchDragged(int x, int y, int pointer) - Specified by:
touchDraggedin interfacecom.badlogic.gdx.InputProcessor
-
mouseMoved
public boolean mouseMoved(int x, int y) - Specified by:
mouseMovedin interfacecom.badlogic.gdx.InputProcessor
-