paired_ctrl(0)
{ }
+SmoothControl &SmoothControl::operator=(const SmoothControl &sc)
+{
+ Control::operator=(sc);
+
+ return *this;
+}
+
+SmoothControl::~SmoothControl()
+{
+ pair(0);
+}
+
void SmoothControl::pair(SmoothControl *ctrl)
{
if(ctrl==paired_ctrl)
if(paired_ctrl)
{
+ SmoothControl *old_pair=paired_ctrl;
paired_ctrl=0;
- paired_ctrl->pair(0);
+ old_pair->pair(0);
}
paired_ctrl=ctrl;
SmoothControl();
SmoothControl(const ControlSource &);
SmoothControl(Device &, ControlSrcType, unsigned);
+ SmoothControl &operator=(const SmoothControl &);
+ virtual ~SmoothControl();
void pair(SmoothControl *ctrl);
float get_value() const { return value; }