Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            _useRumble = true;

            _cm = new CronusMaxPlus.Define();
            _output = new CronusMaxPlus.Output(_cm);
            _gamepad = new XInput.Gamepad();

            if (!new CronusMaxPlus.CmPlus(_cm).Init())
            {
                // Return an error string and see whats going on.
                MessageBox.Show(@"Error opening API");
                return;
            }
            _cm.Load();
            /*
             * I'm putting this in a timer for simplicity. If you're building a game loop, put it in an update thread.
             */
            timer1.Enabled = true;
        }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            _useRumble = true;

            _cm      = new CronusMaxPlus.Define();
            _output  = new CronusMaxPlus.Output(_cm);
            _gamepad = new XInput.Gamepad();

            if (!new CronusMaxPlus.CmPlus(_cm).Init())
            {
                // Return an error string and see whats going on.
                MessageBox.Show(@"Error opening API");
                return;
            }
            _cm.Load();

            /*
             * I'm putting this in a timer for simplicity. If you're building a game loop, put it in an update thread.
             */
            timer1.Enabled = true;
        }