コード例 #1
0
 /// <summary>
 /// Event that is triggerd periodically. Currently the refresh is set to 10 Hz. This can be changed.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void timer1_Tick(object sender, EventArgs e)
 {
     // update the values read from the xbox one controller
     xb1c.Update();
     UpdateControllerValues();
     // Calclulate the gain based on the positoin of each joystick
     CalculateGains();
     // Update slide bar values to reflect the changes that were sent
     UpdateTrackBars();
 }
コード例 #2
0
 /// <summary>
 /// Event that is triggerd periodically. Currently the refresh is set to 10 Hz. This can be changed.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void timer1_Tick(object sender, EventArgs e)
 {
     xb1c.Update();
     UpdateControllerValues();
 }