public PadItem_ForceFeedbackControl() { InitHelper.InitTimer(this, InitializeComponent); var effectsTypes = Enum.GetValues(typeof(ForceEffectType)).Cast <ForceEffectType>().Distinct().ToArray(); ForceTypeComboBox.ItemsSource = effectsTypes; overallStrengthLink = new TrackBarUpDownTextBoxLink(StrengthTrackBar, StrengthUpDown, StrengthTextBox, 0, 100); InitUpdateTimer(); }
public PadItem_ForceFeedback_MotorControl() { InitializeComponent(); deadzoneLink = new TrackBarUpDownTextBoxLink(StrengthTrackBar, StrengthUpDown, StrengthTextBox, 0, 100); offsetLink = new TrackBarUpDownTextBoxLink(PeriodTrackBar, PeriodUpDown, PeriodTextBox, 0, 100); testLink = new TrackBarUpDownTextBoxLink(TestTrackBar, TestUpDown, TestTextBox, 0, 100); // fill direction values. var effectDirections = (ForceEffectDirection[])Enum.GetValues(typeof(ForceEffectDirection)); DirectionComboBox.ItemsSource = effectDirections; }
public AxisToButtonControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } controlsLink = new TrackBarUpDownTextBoxLink(DeadZoneTrackBar, DeadZoneNumericUpDown, DeadZoneTextBox, 0, short.MaxValue); controlsLink.ValueChanged += controlsLink_ValueChanged; arrowEnabledImage = ControlsHelper.GetImageSource(Properties.Resources.arrow_right_16x16); arrowDisabledImage = ControlsHelper.GetImageSource(AppHelper.GetDisabledImage(Properties.Resources.arrow_right_16x16)); }
public PadItem_DPadControl() { InitializeComponent(); deadzoneLink = new TrackBarUpDownTextBoxLink(DeadZoneTrackBar, DeadZoneUpDown, DeadZoneTextBox, 0, 100); offsetLink = new TrackBarUpDownTextBoxLink(OffsetTrackBar, OffsetUpDown, OffsetTextBox, 0, 100); }