X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fbinarycontrol.cpp;h=b0148ccf5332f023d22c1a9dfe436ba94fe93783;hb=97ea3f88027c577811bcd9717ad506f254d393f5;hp=70a816570fb2d33bcc697ec52fe1fe770cd19147;hpb=c9626e6953c16efc66575eff80c4c0de2f739041;p=libs%2Fgui.git diff --git a/source/input/binarycontrol.cpp b/source/input/binarycontrol.cpp index 70a8165..b0148cc 100644 --- a/source/input/binarycontrol.cpp +++ b/source/input/binarycontrol.cpp @@ -21,16 +21,19 @@ BinaryControl::BinaryControl(Device &d, ControlSrcType t, unsigned i): threshold(0.5) { } +BinaryControl::~BinaryControl() +{ } + void BinaryControl::set_threshold(float t) { - threshold=t; + threshold = t; } void BinaryControl::on_press() { if(!state) { - state=true; + state = true; signal_press.emit(); } } @@ -39,7 +42,7 @@ void BinaryControl::on_release() { if(state) { - state=false; + state = false; signal_release.emit(); } }