Package gaiasky.input
Class GuiKbdListener
java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.input.GestureDetector
gaiasky.input.AbstractMouseKbdListener
gaiasky.input.GuiKbdListener
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor
,IInputListener
- Direct Known Subclasses:
WindowKbdListener
-
Nested Class Summary
Nested classes/interfaces inherited from class com.badlogic.gdx.input.GestureDetector
com.badlogic.gdx.input.GestureDetector.GestureAdapter, com.badlogic.gdx.input.GestureDetector.GestureListener
-
Field Summary
Fields inherited from class gaiasky.input.AbstractMouseKbdListener
active, iCamera, lastPollTime, minPollInterval, minPollTime
-
Constructor Summary
ModifierConstructorDescriptionprotected
GuiKbdListener
(com.badlogic.gdx.scenes.scene2d.Stage stage) -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
accept()
boolean
abstract boolean
close()
com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Group>
boolean
keyDown
(int keycode) boolean
keyUp
(int keycode) boolean
moveDown()
Moves the focus down.boolean
moveEnd()
boolean
moveFocusVertical
(boolean up) boolean
moveHome()
boolean
moveLeft()
boolean
boolean
moveUp()
Moves the focus up.protected boolean
pollKeys()
Implement key polling here.abstract boolean
select()
abstract boolean
tabLeft()
abstract boolean
tabRight()
Methods inherited from class gaiasky.input.AbstractMouseKbdListener
activate, allPressed, allPressed, anyPressed, deactivate, getResponseTime, isActive, isKeyPressed, update
Methods inherited from class com.badlogic.gdx.input.GestureDetector
cancel, invalidateTapSquare, isLongPressed, isLongPressed, isPanning, reset, setLongPressSeconds, setMaxFlingDelay, setTapCountInterval, setTapRectangleSize, setTapSquareSize, touchDown, touchDown, touchDragged, touchDragged, touchUp, touchUp
Methods inherited from class com.badlogic.gdx.InputAdapter
keyTyped, mouseMoved, scrolled, touchCancelled
-
Field Details
-
stage
protected final com.badlogic.gdx.scenes.scene2d.Stage stage
-
-
Constructor Details
-
GuiKbdListener
protected GuiKbdListener(com.badlogic.gdx.scenes.scene2d.Stage stage)
-
-
Method Details
-
keyDown
public boolean keyDown(int keycode) - Specified by:
keyDown
in interfacecom.badlogic.gdx.InputProcessor
- Overrides:
keyDown
in classAbstractMouseKbdListener
-
keyUp
public boolean keyUp(int keycode) - Specified by:
keyUp
in interfacecom.badlogic.gdx.InputProcessor
- Overrides:
keyUp
in classAbstractMouseKbdListener
-
pollKeys
protected boolean pollKeys()Description copied from class:AbstractMouseKbdListener
Implement key polling here.- Specified by:
pollKeys
in classAbstractMouseKbdListener
- Returns:
- True if an action was successfully executed.
-
getContentContainers
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Group> getContentContainers() -
actionDown
public boolean actionDown() -
close
public abstract boolean close() -
accept
public abstract boolean accept() -
select
public abstract boolean select() -
tabLeft
public abstract boolean tabLeft() -
tabRight
public abstract boolean tabRight() -
moveLeft
public boolean moveLeft() -
moveRight
public boolean moveRight() -
moveHome
public boolean moveHome() -
moveEnd
public boolean moveEnd() -
moveUp
public boolean moveUp()Moves the focus up. -
moveDown
public boolean moveDown()Moves the focus down. -
moveFocusVertical
public boolean moveFocusVertical(boolean up)
-