X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fbinarycontrol.cpp;h=57c63427839bda9ac6c1d41f5c234e100790d87d;hb=5d688fbf457b1f4d3bebde431a7f58c898be584c;hp=70a816570fb2d33bcc697ec52fe1fe770cd19147;hpb=c9626e6953c16efc66575eff80c4c0de2f739041;p=libs%2Fgui.git diff --git a/source/input/binarycontrol.cpp b/source/input/binarycontrol.cpp index 70a8165..57c6342 100644 --- a/source/input/binarycontrol.cpp +++ b/source/input/binarycontrol.cpp @@ -23,14 +23,14 @@ BinaryControl::BinaryControl(Device &d, ControlSrcType t, unsigned i): 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 +39,7 @@ void BinaryControl::on_release() { if(state) { - state=false; + state = false; signal_release.emit(); } }