|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.scenes.scene2d.InputListener
public class InputListener
Listener for actor input events.
Constructor Summary | |
---|---|
InputListener()
|
Method Summary | |
---|---|
void |
enter(InputEvent event,
float x,
float y,
int pointer,
Actor fromActor)
Called any time the mouse cursor or a finger touch is moved over an actor. |
void |
exit(InputEvent event,
float x,
float y,
int pointer,
Actor toActor)
Called any time the mouse cursor or a finger touch is moved out of an actor. |
boolean |
handle(Event e)
|
boolean |
keyDown(InputEvent event,
int keycode)
Called when a key goes down. |
boolean |
keyTyped(InputEvent event,
char character)
Called when a key is typed. |
boolean |
keyUp(InputEvent event,
int keycode)
Called when a key goes up. |
boolean |
mouseMoved(InputEvent event,
float x,
float y)
Called any time the mouse is moved when a button is not down. |
boolean |
scrolled(InputEvent event,
float x,
float y,
int amount)
Called when the mouse wheel has been scrolled. |
boolean |
touchDown(InputEvent event,
float x,
float y,
int pointer,
int button)
Called when a mouse button or a finger touch goes down on the actor. |
void |
touchDragged(InputEvent event,
float x,
float y,
int pointer)
Called when a mouse button or a finger touch is moved anywhere, but only if touchDown previously returned true for the mouse button or touch. |
void |
touchUp(InputEvent event,
float x,
float y,
int pointer,
int button)
Called when a mouse button or a finger touch goes up anywhere, but only if touchDown previously returned true for the mouse button or touch. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputListener()
Method Detail |
---|
public boolean handle(Event e)
handle
in interface EventListener
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button)
handled
.
InputEvent
public void touchUp(InputEvent event, float x, float y, int pointer, int button)
handled
.
InputEvent
public void touchDragged(InputEvent event, float x, float y, int pointer)
handled
.
InputEvent
public boolean mouseMoved(InputEvent event, float x, float y)
handled
.
InputEvent
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor)
InputEvent
public void exit(InputEvent event, float x, float y, int pointer, Actor toActor)
InputEvent
public boolean scrolled(InputEvent event, float x, float y, int amount)
handled
.
public boolean keyDown(InputEvent event, int keycode)
handled
.
public boolean keyUp(InputEvent event, int keycode)
handled
.
public boolean keyTyped(InputEvent event, char character)
handled
.
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |