#ifndef MSP_INPUT_SMOOTHCONTROL_H_
#define MSP_INPUT_SMOOTHCONTROL_H_
+#include <msp/graphics/mspgui_api.h>
#include "control.h"
namespace Msp {
the pair will cause negative motion on the other. This works best when the
controls are bound to the opposite sides of the same axis.
*/
-class SmoothControl: public Control
+class MSPGUI_API SmoothControl: public Control
{
public:
sigc::signal<void, float> signal_motion;
private:
- float value;
- SmoothControl *paired_ctrl;
- float dead_zone;
- float threshold;
+ float value = 0.0f;
+ SmoothControl *paired_ctrl = nullptr;
+ float dead_zone = 0.1f;
+ float threshold = 0.9f;
public:
- SmoothControl();
+ SmoothControl() = default;
SmoothControl(const ControlSource &);
SmoothControl(Device &, ControlSrcType, unsigned);
~SmoothControl();