public class GestureManager
extends com.badlogic.gdx.input.GestureDetector.GestureAdapter
| Modifier and Type | Field and Description |
|---|---|
static float |
JUMP_FLING_SPEED
Stores the minimum speed the user has to fling to make the player jump or fall.
|
| Constructor and Description |
|---|
GestureManager(com.jonathan.survivor.World world)
Creates an InputManager with the given world.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
fling(float velocityX,
float velocityY,
int button)
Called when the user flicks the screen.
|
void |
pause()
Pauses the GestureManager so that it doesn't call any of the world's methods.
|
void |
resume()
Resumes the GestureManager so that it can call the world's methods based on touch gestures.
|
public static final float JUMP_FLING_SPEED
public GestureManager(com.jonathan.survivor.World world)
public boolean fling(float velocityX,
float velocityY,
int button)
fling in interface com.badlogic.gdx.input.GestureDetector.GestureListenerfling in class com.badlogic.gdx.input.GestureDetector.GestureAdapterpublic void pause()
public void resume()