Example #1
0
        /// <summary>
        /// ctor
        /// </summary>
        public ActionTree( Boolean blendUnmappedJS, Boolean blendUnmappedGP, JoystickList jsList, GamepadCls gamepad )
        {
            BlendUnmappedJS = blendUnmappedJS;
              BlendUnmappedGP = blendUnmappedGP;

              m_jsList = jsList;
              m_gamepad = gamepad;

              IgnoreMaps = ""; // nothing to ignore
        }
Example #2
0
        /// <summary>
        /// ctor - gets the owning class instance
        /// </summary>
        /// <param name="owner"></param>
        public FormReassign( JoystickList owner )
        {
            InitializeComponent( );
              m_owner = owner;

              m_tb[0] = txJS1; m_tb[1] = txJS2; m_tb[2] = txJS3; m_tb[3] = txJS4;
              m_tb[4] = txJS5; m_tb[5] = txJS6; m_tb[6] = txJS7; m_tb[7] = txJS8;

              m_cb[0] = cbxStick1; m_cb[1] = cbxStick2; m_cb[2] = cbxStick3; m_cb[3] = cbxStick4;
              m_cb[4] = cbxStick5; m_cb[5] = cbxStick6; m_cb[6] = cbxStick7; m_cb[7] = cbxStick8;
        }
Example #3
0
        DeviceTuningParameter m_tuningY = null; // yaw

        #endregion Fields

        #region Constructors

        // ctor
        public Options( JoystickList jsList )
        {
            m_tuningP = new DeviceTuningParameter( );
              m_tuningY = new DeviceTuningParameter( );
              m_tuningR = new DeviceTuningParameter( );

              // create inverters (
              for (int i=0; i<(int)OptionsInvert.Inversions.I_LAST; i++) {
            OptionsInvert inv = new OptionsInvert((OptionsInvert.Inversions)i);
            m_inverter.Add(inv);
              }
        }
Example #4
0
        private List <string> m_stringOptions = new List <string>( ); // collected options from XML that are not parsed


        // ctor
        public Deviceoptions(JoystickList jsList)
        {
            // create all devOptions for all devices found (they may or may no be used)
            foreach (JoystickCls js in jsList)
            {
                foreach (string input in js.AnalogCommands)
                {
                    string doid = DevOptionID(js.DevName, input);
                    if (!this.ContainsKey(doid))
                    {
                        this.Add(doid, new DeviceOptionParameter(js.DevName, input, "", "")); // init with disabled defaults
                    }
                    else
                    {
                        log.WarnFormat("cTor - DO_ID {0} exists (likely a duplicate device name e,g, vJoy ??)", doid);
                    }
                }
            }
        }
Example #5
0
 public GamePadBinding(JoystickList GamePadKey, float AxisContribution, string Name) : base((int)GamePadKey, AxisContribution, Name)
 {
 }