X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fcontrol.cpp;fp=source%2Finput%2Fcontrol.cpp;h=fb1d37654b61b812c05bc1092f98158e7df50a16;hb=294c354ae3b1f26887c37f866f082e52c08d80f1;hp=f82b9c38cd1946ada7cf0d749b0bae8aa7d5309e;hpb=2ed9d7a0a96638bdf0614c1cf858719e7ced40d3;p=libs%2Fgui.git diff --git a/source/input/control.cpp b/source/input/control.cpp index f82b9c3..fb1d376 100644 --- a/source/input/control.cpp +++ b/source/input/control.cpp @@ -9,12 +9,6 @@ using namespace std; namespace Msp { namespace Input { -ControlSource::ControlSource(): - dev(0), - type(NONE), - index(0) -{ } - ControlSource::ControlSource(Device &d, ControlSrcType t, unsigned i): dev(&d), type(t), @@ -36,30 +30,12 @@ std::string ControlSource::str() const } -Control::Control(): - capture_dev(0), - activator(0), - origin(0), - rising_edge(false), - falling_edge(false) -{ } - Control::Control(const ControlSource &s): - src(s), - capture_dev(0), - activator(0), - origin(0), - rising_edge(false), - falling_edge(false) + src(s) { } Control::Control(Device &d, ControlSrcType t, unsigned i): - src(d, t, i), - capture_dev(0), - activator(0), - origin(0), - rising_edge(false), - falling_edge(false) + src(d, t, i) { connect_signals(); }