Example #1
0
 private void SendFeedback()
 {
     senderFunction(new InputDeviceInputResponse
     {
         Sources = device.FindAllSources().Select(s => new InputDeviceSourceValue {
             Id    = s.Id,
             Value = s.Value,
         }).ToList(),
         Targets = device.FindAllTargets().Select(s => new InputDeviceTargetValue {
             Id    = s.Id,
             Value = s.Value,
         }).ToList(),
     });
 }