Device *capture_dev;
BinaryControl *activator;
float origin;
+ bool rising_edge;
+ bool falling_edge;
Control();
Control(const ControlSource &);
const ControlSource &get_source() const { return src; }
void set_activator(BinaryControl *);
BinaryControl *get_activator() const { return activator; }
+ bool has_rising_edge() const { return rising_edge; }
+ bool has_falling_edge() const { return falling_edge; }
+ void reset_edges();
protected:
virtual void on_press() = 0;
virtual void on_release() = 0;