private Action <double, double> CreateSetter(Dictionary <string, IInputDevice> deviceLookup, ForceFeedbackMapper mapper) { if (deviceLookup.ContainsKey(mapper.Device)) { var target = deviceLookup[mapper.Device].FindTarget(mapper.InputId); if (target != null) { if (mapper.Big) { return((big, small) => { target.Value = big; }); } else { return((big, small) => { target.Value = small; }); } } } return((big, small) => { }); }
private Action <double, double> CreateSetter(Dictionary <string, InputDevice> deviceLookup, ForceFeedbackMapper mapper) { if (deviceLookup.ContainsKey(mapper.Device)) { var target = deviceLookup[mapper.Device]; if (target != null) { if (mapper.Big) { // target.SetFeedback(0, 0); } else { // target.SetFeedback(0, 0); } } } return((big, small) => { }); }