public void mapBooleanVariableToComponent( YoVariableHolder holder, SaitekX52Mapping mapping, String variableName, boolean toggle, boolean invert) { BooleanYoVariable yoVariable = (BooleanYoVariable) holder.getVariable(variableName); if (yoVariable != null) { mapBooleanVariableToComponent(mapping, yoVariable, toggle, invert); } else { PrintTools.warn(this, "Variable " + variableName + " could not be found!"); } }
public void mapDoubleVariableToComponent( YoVariableHolder holder, SaitekX52Mapping mapping, String variableName, double minValue, double maxValue, double deadZone, boolean invert) { DoubleYoVariable yoVariable = (DoubleYoVariable) holder.getVariable(variableName); if (yoVariable != null) { mapDoubleVariableToComponent(mapping, yoVariable, minValue, maxValue, deadZone, invert); } else { PrintTools.warn(this, "Variable " + variableName + " could not be found!"); } }