Package com.limelight.input.gamepad

Examples of com.limelight.input.gamepad.GamepadMapping$Mapping


   */
  public static GamepadMapping getSettings() {
    if (cachedSettings == null) {
      LimeLog.info("Reading Gamepad Settings");
      File gamepadFile = SettingsManager.getInstance().getGamepadFile();
      GamepadMapping savedMapping = (GamepadMapping)SettingsManager.readSettings(gamepadFile, GamepadMapping.class);
      cachedSettings = savedMapping;
    }
    if (cachedSettings == null) {
      LimeLog.warning("Unable to get gamepad settings. Using default mapping instead.");
      if (System.getProperty("os.name").contains("Windows")) {
        cachedSettings = GamepadMapping.getWindowsDefaultMapping();
      } else {
        cachedSettings = new GamepadMapping();
      }
      writeSettings(cachedSettings);
    }
    return cachedSettings;
  }
View Full Code Here

TOP

Related Classes of com.limelight.input.gamepad.GamepadMapping$Mapping

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.