public class GameInput
extends java.lang.Object
implements com.badlogic.gdx.InputProcessor
Modifier and Type | Field and Description |
---|---|
InputStream |
postMC
Obiekt odpowiadający za kliknięcia lewego przycisku myszy.
|
Constructor and Description |
---|
GameInput() |
Modifier and Type | Method and Description |
---|---|
boolean |
keyDown(int keycode) |
boolean |
keyTyped(char character) |
boolean |
keyUp(int keycode) |
boolean |
mouseMoved(int x,
int y) |
boolean |
scrolled(int amount) |
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) |
public final InputStream postMC
public boolean keyDown(int keycode)
keyDown
in interface com.badlogic.gdx.InputProcessor
public boolean keyUp(int keycode)
keyUp
in interface com.badlogic.gdx.InputProcessor
public boolean keyTyped(char character)
keyTyped
in interface com.badlogic.gdx.InputProcessor
public boolean touchDown(int x, int y, int pointer, int button)
touchDown
in interface com.badlogic.gdx.InputProcessor
public boolean touchUp(int x, int y, int pointer, int button)
touchUp
in interface com.badlogic.gdx.InputProcessor
public boolean touchDragged(int x, int y, int pointer)
touchDragged
in interface com.badlogic.gdx.InputProcessor
public boolean mouseMoved(int x, int y)
mouseMoved
in interface com.badlogic.gdx.InputProcessor
public boolean scrolled(int amount)
scrolled
in interface com.badlogic.gdx.InputProcessor