Exemplo n.º 1
0
  /**
   * Get a count of the number of controlles available
   *
   * @return The number of controllers available
   */
  public int getControllerCount() {
    try {
      initControllers();
    } catch (SlickException e) {
      throw new RuntimeException("Failed to initialise controllers");
    }

    return controllers.size();
  }