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 TypeMethodDescriptionboolean
keyDown
(int keycode) boolean
keyTyped
(char character) boolean
keyUp
(int keycode) React to key pressed once.boolean
mouseMoved
(int x, int y) boolean
scrolled
(float amountX, float amountY) Zoom in or out for the camera.boolean
touchDown
(int x, int y, int pointer, int button) boolean
touchDragged
(int x, int y, int pointer) boolean
touchUp
(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:
scrolled
in interfacecom.badlogic.gdx.InputProcessor
- See Also:
-
InputProcessor.scrolled(float, float)
-
keyUp
public boolean keyUp(int keycode) React to key pressed once.- Specified by:
keyUp
in interfacecom.badlogic.gdx.InputProcessor
- Parameters:
keycode
- the key pressed
-
keyDown
public boolean keyDown(int keycode) - Specified by:
keyDown
in interfacecom.badlogic.gdx.InputProcessor
-
keyTyped
public boolean keyTyped(char character) - Specified by:
keyTyped
in interfacecom.badlogic.gdx.InputProcessor
-
touchDown
public boolean touchDown(int x, int y, int pointer, int button) - Specified by:
touchDown
in interfacecom.badlogic.gdx.InputProcessor
-
touchUp
public boolean touchUp(int x, int y, int pointer, int button) - Specified by:
touchUp
in interfacecom.badlogic.gdx.InputProcessor
-
touchDragged
public boolean touchDragged(int x, int y, int pointer) - Specified by:
touchDragged
in interfacecom.badlogic.gdx.InputProcessor
-
mouseMoved
public boolean mouseMoved(int x, int y) - Specified by:
mouseMoved
in interfacecom.badlogic.gdx.InputProcessor
-