/// <summary>
 /// cTor with content
 /// </summary>
 /// <param name="deviceName">The device name</param>
 /// <param name="cmdCtrl">The command e.g. x,y, rotz etc</param>
 /// <param name="dz">The deadzone value as string (empty string disables)</param>
 /// <param name="sa">The saturation value as string (empty string disables)</param>
 public DeviceOptionParameter(string deviceName, string cmdCtrl, string dz, string sa)
 {
     m_deviceName = deviceName;
     m_doID       = Deviceoptions.DevOptionID(deviceName, cmdCtrl);
     m_cmdCtrl    = cmdCtrl;
     if (string.IsNullOrEmpty(dz))
     {
         m_deadzone        = "0.000";
         m_deadzoneEnabled = false;
     }
     else
     {
         m_deadzone        = dz;
         m_deadzoneEnabled = true;
     }
     if (string.IsNullOrEmpty(sa))
     {
         m_saturation        = "1.000";
         m_saturationEnabled = false;
     }
     else
     {
         m_saturation        = sa;
         m_saturationEnabled = true;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Helper to create all needed objs
 /// </summary>
 public void CreateNewOptions()
 {
     // create options objs
     m_uiCustHeader  = new UICustHeader( );
     m_tuningOptions = new Tuningoptions( );
     m_deviceOptions = new Deviceoptions( );
 }