Package gaiasky.input
Class GameMouseKbdListener
java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.input.GestureDetector
gaiasky.input.AbstractMouseKbdListener
gaiasky.input.GameMouseKbdListener
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor
,IObserver
,IInputListener
-
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
ConstructorDescriptionGameMouseKbdListener
(gaiasky.input.GameMouseKbdListener.GameGestureListener l, NaturalCamera naturalCamera) GameMouseKbdListener
(NaturalCamera naturalCamera) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
void
float
boolean
keyDown
(int keycode) boolean
keyUp
(int keycode) boolean
mouseMoved
(int screenX, int screenY) void
Event notification call.boolean
pollKeys()
Implement key polling here.boolean
touchUp
(float x, float y, int pointer, int button) Methods inherited from class gaiasky.input.AbstractMouseKbdListener
allPressed, allPressed, anyPressed, 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
Methods inherited from class com.badlogic.gdx.InputAdapter
keyTyped, scrolled, touchCancelled
-
Constructor Details
-
GameMouseKbdListener
public GameMouseKbdListener(gaiasky.input.GameMouseKbdListener.GameGestureListener l, NaturalCamera naturalCamera) -
GameMouseKbdListener
-
-
Method Details
-
pollKeys
public boolean pollKeys()Description copied from class:AbstractMouseKbdListener
Implement key polling here.- Specified by:
pollKeys
in classAbstractMouseKbdListener
- Returns:
- True if an action was successfully executed.
-
getResponseTime
public float getResponseTime()- Overrides:
getResponseTime
in classAbstractMouseKbdListener
-
activate
public void activate()- Specified by:
activate
in interfaceIInputListener
- Overrides:
activate
in classAbstractMouseKbdListener
-
deactivate
public void deactivate()- Specified by:
deactivate
in interfaceIInputListener
- Overrides:
deactivate
in classAbstractMouseKbdListener
-
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
-
mouseMoved
public boolean mouseMoved(int screenX, int screenY) - Specified by:
mouseMoved
in interfacecom.badlogic.gdx.InputProcessor
- Overrides:
mouseMoved
in classcom.badlogic.gdx.InputAdapter
-
touchUp
public boolean touchUp(float x, float y, int pointer, int button) - Overrides:
touchUp
in classcom.badlogic.gdx.input.GestureDetector
-
notify
Description copied from interface:IObserver
Event notification call.
-