Examples of GamepadMapping


Examples of com.limelight.input.GamepadMapping

      }
    }
 
    conn = new NvConnection(host.getHostAddress(), getUniqueId(), this, streamConfig, PlatformBinding.getCryptoProvider());
   
    GamepadMapping mapping = null;
    if (mappingFile!=null) {
      try {
        mapping = new GamepadMapping(new File(mappingFile));
      } catch (IOException e) {
        displayError("Mapping", "Can't load gamepad mapping from " + mappingFile);
        System.exit(3);
      }
    } else
      mapping = new GamepadMapping();
   
    try {
      new EvdevLoader(conn, mapping, inputs).start();
    } catch (FileNotFoundException ex) {
      displayError("Input", "Input could not be found");
View Full Code Here

Examples of com.limelight.input.gamepad.GamepadMapping

   */
  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
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.