public bool SaveDisableValues() { MapperData md = mapper.GetMapping(xInputType); if (md.InputType == null) { md.Source = inputTypes.First(); } md.MinValue = Model.XInput.GetDisableValue(); md.MaxValue = Model.XInput.GetDisableValue(); return(Next()); }
public bool SaveDisableValues() { var mapperCollection = mapper.GetMapping(xInputType); MapperData md = mapperCollection.Mappers[0]; // TODO if (md.InputType == null) { md.Source = inputTypes.First(); } md.MinValue = Model.XInput.GetDisableValue(); md.MaxValue = Model.XInput.GetDisableValue(); return(Next()); }
internal bool Refresh(InputMapper mapper) { var mappingCollection = mapper.GetMapping(inputType); if (mappingCollection != null) { double newValue = mappingCollection.GetValue(inputType); return(RefreshValue(newValue)); } return(false); }
internal bool Refresh(InputMapper mapper) { var mapping = mapper.GetMapping(inputType); if (mapping != null) { double value = 0; if (mapping.InputType != null && mapping.InputDevice != null && mapping.Source != null) { value = mapping.Source.Get(); } double newValue = mapping.GetValue(value); return(RefreshValue(newValue)); } return(false); }