public AnalogBindControl(string buttonName, Config.AnalogBind bind) : this() { _bind = bind; ButtonName = buttonName; labelButtonName.Text = buttonName; trackBarSensitivity.Value = (int)(bind.Mult * 10.0f); trackBarDeadzone.Value = (int)(bind.Deadzone * 20.0f); TrackBarSensitivity_ValueChanged(null, null); TrackBarDeadzone_ValueChanged(null, null); textBox1.Text = bind.Value; }
public AnalogBindControl(string ButtonName, Config.AnalogBind Bind) : this() { this.Bind = Bind; this.ButtonName = ButtonName; labelButtonName.Text = ButtonName; trackBarSensitivity.Value = (int)(Bind.Mult * 10.0f); trackBarDeadzone.Value = (int)(Bind.Deadzone * 20.0f); trackBarSensitivity_ValueChanged(null, null); trackBarDeadzone_ValueChanged(null, null); textBox1.Text = Bind.Value; }