*/
struct ControlSource
{
- Device *dev;
- ControlSrcType type;
- unsigned index;
+ Device *dev = 0;
+ ControlSrcType type = NONE;
+ unsigned index = 0;
- ControlSource();
+ ControlSource() = default;
ControlSource(Device &, ControlSrcType, unsigned);
std::string str() const;
};
protected:
ControlSource src;
- Device *capture_dev;
- BinaryControl *activator;
- float origin;
- bool rising_edge;
- bool falling_edge;
+ Device *capture_dev = 0;
+ BinaryControl *activator = 0;
+ float origin = 0.0f;
+ bool rising_edge = false;
+ bool falling_edge = false;
- Control();
+ Control() = default;
Control(const ControlSource &);
Control(Device &, ControlSrcType, unsigned);
public: