Class ScreenKbdListener
java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.input.GestureDetector
gaiasky.input.AbstractMouseKbdListener
gaiasky.input.GuiKbdListener
gaiasky.input.ScreenKbdListener
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor, IInputListener
Listener that handles keyboard and mouse input events for UI screens and dialogs.
-
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 GuiKbdListener
stageFields inherited from class AbstractMouseKbdListener
active, iCamera, lastPollTime, minPollIntervalModifier and TypeFieldDescriptionprotected final AtomicBooleanprotected ICameraprotected longprotected longMinimum time after key press before polling starts. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class GuiKbdListener
actionDown, keyDown, keyUp, moveDown, moveEnd, moveFocusVertical, moveHome, moveLeft, moveRight, moveUp, pollKeysModifier and TypeMethodDescriptionbooleanbooleankeyDown(int keyCode) booleankeyUp(int keyCode) booleanmoveDown()Moves the focus down.booleanmoveEnd()booleanmoveFocusVertical(boolean up) booleanmoveHome()booleanmoveLeft()booleanbooleanmoveUp()Moves the focus up.protected booleanpollKeys()Implement key polling here.Methods inherited from class AbstractMouseKbdListener
activate, allPressed, allPressed, anyPressed, anyPressedLogical, deactivate, getFpsScale, getResponseTime, isActive, isKeyPressed, isLogicalKeyPressed, scrolled, touchDown, touchDown, touchUp, touchUp, updateModifier and TypeMethodDescriptionvoidactivate()Activate the listener.booleanallPressed(int... keys) Returns true if all keys are pressedbooleanallPressed(Collection<Integer> keys) booleananyPressed(int... keys) Returns true if any of the physical keys are pressed.booleananyPressedLogical(int... keys) Same asAbstractMouseKbdListener.anyPressed(int...), but converts the physical keys to logical keys first.voidDeactivate the listener.protected floatfloatbooleanisActive()booleanisKeyPressed(int keyCode) Returns whether the key is pressed.booleanisLogicalKeyPressed(int keyCode) Returns whether the given logical key code is pressed.booleanscrolled(float amountX, float amountY) booleantouchDown(float x, float y, int pointer, int button) booleantouchDown(int x, int y, int pointer, int button) booleantouchUp(float x, float y, int pointer, int button) booleantouchUp(int x, int y, int pointer, int button) voidupdate()Update the listener.Methods inherited from class com.badlogic.gdx.input.GestureDetector
cancel, invalidateTapSquare, isLongPressed, isLongPressed, isPanning, reset, setLongPressSeconds, setMaxFlingDelay, setTapCountInterval, setTapRectangleSize, setTapSquareSize, touchCancelled, touchDragged, touchDraggedMethods inherited from class com.badlogic.gdx.InputAdapter
keyTyped, mouseMoved
-
Constructor Details
-
ScreenKbdListener
-
-
Method Details
-
getContentContainers
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Group> getContentContainers()- Overrides:
getContentContainersin classGuiKbdListener
-
close
public boolean close()- Specified by:
closein classGuiKbdListener
-
accept
public boolean accept()- Specified by:
acceptin classGuiKbdListener
-
select
public boolean select()- Specified by:
selectin classGuiKbdListener
-
tabLeft
public boolean tabLeft()- Specified by:
tabLeftin classGuiKbdListener
-
tabRight
public boolean tabRight()- Specified by:
tabRightin classGuiKbdListener
-