Exemple #1
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;
        }
Exemple #2
0
        private List <CheckBox> m_invertCB = null;                     // Options owns and handles all Inversions

        // 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);
            }
        }
Exemple #3
0
        /// <summary>
        /// ctor
        /// </summary>
        public ActionMapsCls(JoystickList jsList)
        {
            version        = ACM_VERSION;
            m_joystickList = jsList; // have to save this for Reassign

            // create the Joystick assignments
            Array.Resize(ref m_js, JoystickCls.JSnum_MAX + 1);
            Array.Resize(ref m_GUIDs, JoystickCls.JSnum_MAX + 1);
            for (int i = 0; i < JoystickCls.JSnum_MAX; i++)
            {
                m_js[i] = ""; m_GUIDs[i] = "";
            }

            CreateNewOptions( );

            LoadSupportedActionMaps( ); // get them from config
        }