Package com.limelight.input.gamepad

Examples of com.limelight.input.gamepad.SourceComponent


      Mapping oldConfig = config.get(newMapping);
      if (oldConfig != null) {
        getButton(getBox(oldConfig)).setText("");
      }

      SourceComponent oldSource = config.getMapping(mappingToMap.padComp);
      if (oldSource != null) {
        config.remove(oldSource);
      }

      config.insertMapping(mappingToMap, newMapping);
View Full Code Here


    }

    public void handleButton(Device device, int buttonId, boolean pressed) {
      if (pressed) {
        newMapping = new SourceComponent(SourceComponent.Type.BUTTON, buttonId, null);
      }
    }
View Full Code Here

    }

    public void handleAxis(Device device, int axisId, float newValue,
        float lastValue) {
      if (newValue > 0.75) {
        newMapping = new SourceComponent(SourceComponent.Type.AXIS, axisId, Direction.POSITIVE);
      } else if (newValue < -0.75) {
        newMapping = new SourceComponent(SourceComponent.Type.AXIS, axisId, Direction.NEGATIVE);
      }
    }
View Full Code Here

TOP

Related Classes of com.limelight.input.gamepad.SourceComponent

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.