com.badlogic.gdx.input.GestureDetector Java Examples
The following examples show how to use
com.badlogic.gdx.input.GestureDetector.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GdxContext.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public TouchInput getTouchInput() { GdxInput input = new GdxInput(); Gdx.input.setInputProcessor(new GestureDetector(input)); return input; //return null; //To change body of implemented methods use File | Settings | File Templates. }
Example #2
Source File: InputController.java From TerraLegion with MIT License | 4 votes |
/** Singleton constructor */ private InputController() { processors.addProcessor(new GestureDetector(this)); //Add a gesture detector to the input processor list Gdx.input.setInputProcessor(processors); //Set the processors }
Example #3
Source File: InputController.java From TerraLegion with MIT License | 4 votes |
/** Clear all processors except for the GestureDetector. */ public void clearProcessors() { processors.clear(); processors.addProcessor(new GestureDetector(this)); Gdx.input.setInputProcessor(processors); }