コード例 #1
0
ファイル: ControllerBase.cs プロジェクト: yy520a/XOutput
 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) => { });
 }
コード例 #2
0
 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) => { });
 }