Package ponkOut

Examples of ponkOut.Settings


  private ControllerAction controllerLeft;
  private ControllerAction controllerRight;
  private ControllerAction controllerFire;

  public ControllerInput(int player) {
    Settings settings = Settings.getInstance();
    controller = InputManager.getInstance().getController(settings.getControllerIndex(player));

    speed = settings.getControllerSpeed(player) * 4.0f;
    controllerUp = settings.getControllerUp(player);
    controllerDown = settings.getControllerDown(player);
    controllerLeft = settings.getControllerLeft(player);
    controllerRight = settings.getControllerRight(player);
    controllerFire = settings.getControllerFire(player);
  }
View Full Code Here


    for (int i = 0; i < SMOOTHING_COUNT; ++i)
      smoothingWeight[i] /= sum;
  }

  public MouseInput(int player, InputManager inputManager) {
    Settings settings = Settings.getInstance();
    this.inputManager = inputManager;

    speed = settings.getMouseSpeed(player) * 0.007f;

    // init history
    for (int i = 0; i < SMOOTHING_COUNT; ++i)
      movementHistory.add(new Vector2f(0.0f, 0.0f));
  }
View Full Code Here

  private int keyLeft;
  private int keyRight;
  private int keyFire;

  public KeyboardInput(int player) {
    Settings settings = Settings.getInstance();

    speed = settings.getKeyboardSpeed(player) * 4.0f;
    keyUp = settings.getKeyUp(player);
    keyDown = settings.getKeyDown(player);
    keyLeft = settings.getKeyLeft(player);
    keyRight = settings.getKeyRight(player);
    keyFire = settings.getKeyFire(player);
  }
View Full Code Here

TOP

Related Classes of ponkOut.Settings

Copyright © 2018 www.massapicom. 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.