Examples of OisListener


Examples of com.badlogic.gdx.controllers.desktop.ois.OisListener

    private final OisJoystick joystick;
    final Array<ControllerListener> listeners = new Array();

    public OisController (OisJoystick joystick) {
      this.joystick = joystick;
      joystick.setListener(new OisListener() {
        public void buttonReleased (OisJoystick joystick, int buttonIndex) {
          Array<ControllerListener> allListeners = manager.listeners;
          for (int ii = 0, nn = allListeners.size; ii < nn; ii++)
            allListeners.get(ii).buttonUp(OisController.this, buttonIndex);
          for (int ii = 0, nn = listeners.size; ii < nn; ii++)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.