Esempio n. 1
0
        private void joystickStart_Click(object sender, EventArgs e)
        {
            jsio = new JoystickIO();
            bool success = jsio.Connect();

            if (success)
            {
                JoystickTimer.Interval  = 40;
                JoystickTimer.Enabled   = true;
                jsStatusPanel.BackColor = Color.Green;
            }
        }
Esempio n. 2
0
 private void joystickStart_Click(object sender, EventArgs e)
 {
     jsio = new JoystickIO();
     bool success = jsio.Connect();
     if(success) { 
         JoystickTimer.Interval = 40;
         JoystickTimer.Enabled = true; 
         jsStatusPanel.BackColor = Color.Green; 
     }
 }