Back to project page bbg-gdx-project-setup.
The source code is released under:
MIT License
If you think the Android project bbg-gdx-project-setup listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bluebananagames.gametemplate.input; /* w ww .j a v a2s.co m*/ import com.badlogic.gdx.controllers.Controller; public class ControllerInputHandler extends InputHandler { private Controller controller; @Override public boolean isControlPressed(Control control) { return controller.getButton(getMapping().getMappedButton(control)); } public Controller getController() { return controller; } public void setController(Controller controller) { this.controller = controller; } }