Package com.prineside.tdi2.systems
Class InputSystem.MouseEventsInputProcessor
java.lang.Object
com.badlogic.gdx.InputAdapter
com.prineside.tdi2.systems.InputSystem.MouseEventsInputProcessor
- All Implemented Interfaces:
InputProcessor
- Enclosing class:
- InputSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleankeyDown(int keycode) Called when a key was pressedbooleanmouseMoved(int x, int y) Called when the mouse was moved without any buttons being pressed.booleantouchDragged(int screenX, int screenY, int pointer) Called when a finger or the mouse was dragged.booleantouchUp(int screenX, int screenY, int pointer, int button) Called when a finger was lifted or a mouse button was released.Methods inherited from class com.badlogic.gdx.InputAdapter
keyTyped, keyUp, scrolled, touchCancelled, touchDown
-
Constructor Details
-
MouseEventsInputProcessor
public MouseEventsInputProcessor()
-
-
Method Details
-
keyDown
public boolean keyDown(int keycode) Description copied from interface:com.badlogic.gdx.InputProcessorCalled when a key was pressed- Specified by:
keyDownin interfaceInputProcessor- Overrides:
keyDownin classInputAdapter- Parameters:
keycode- one of the constants inInput.Keys- Returns:
- whether the input was processed
-
touchDragged
public boolean touchDragged(int screenX, int screenY, int pointer) Description copied from interface:com.badlogic.gdx.InputProcessorCalled when a finger or the mouse was dragged.- Specified by:
touchDraggedin interfaceInputProcessor- Overrides:
touchDraggedin classInputAdapterpointer- the pointer for the event.- Returns:
- whether the input was processed
-
mouseMoved
public boolean mouseMoved(int x, int y) Description copied from interface:com.badlogic.gdx.InputProcessorCalled when the mouse was moved without any buttons being pressed. Will not be called on iOS.- Specified by:
mouseMovedin interfaceInputProcessor- Overrides:
mouseMovedin classInputAdapter- Returns:
- whether the input was processed
-
touchUp
public boolean touchUp(int screenX, int screenY, int pointer, int button) Description copied from interface:com.badlogic.gdx.InputProcessorCalled when a finger was lifted or a mouse button was released. The button parameter will beInput.Buttons.LEFTon iOS.- Specified by:
touchUpin interfaceInputProcessor- Overrides:
touchUpin classInputAdapterpointer- the pointer for the event.button- the button- Returns:
- whether the input was processed
-