Package com.prineside.tdi2.systems
Class RandomEncounterSystem.BirdClickInputProcessor
java.lang.Object
com.badlogic.gdx.InputAdapter
com.prineside.tdi2.systems.RandomEncounterSystem.BirdClickInputProcessor
- All Implemented Interfaces:
InputProcessor
- Enclosing class:
- RandomEncounterSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantouchDown(int screenX, int screenY, int pointer, int button) Called when the screen was touched or a mouse button was pressed.Methods inherited from class com.badlogic.gdx.InputAdapter
keyDown, keyTyped, keyUp, mouseMoved, scrolled, touchCancelled, touchDragged, touchUp
-
Constructor Details
-
BirdClickInputProcessor
public BirdClickInputProcessor()
-
-
Method Details
-
touchDown
public boolean touchDown(int screenX, int screenY, int pointer, int button) Description copied from interface:com.badlogic.gdx.InputProcessorCalled when the screen was touched or a mouse button was pressed. The button parameter will beInput.Buttons.LEFTon iOS.- Specified by:
touchDownin interfaceInputProcessor- Overrides:
touchDownin classInputAdapter- Parameters:
screenX- The x coordinate, origin is in the upper left cornerscreenY- The y coordinate, origin is in the upper left cornerpointer- the pointer for the event.button- the button- Returns:
- whether the input was processed
-