]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/binarycontrol.cpp
Keep track of edges in Control
[libs/gui.git] / source / input / binarycontrol.cpp
index b0148ccf5332f023d22c1a9dfe436ba94fe93783..09efe40ac74f32500660030088b389076fdc5409 100644 (file)
@@ -34,6 +34,7 @@ void BinaryControl::on_press()
        if(!state)
        {
                state = true;
+               rising_edge = true;
                signal_press.emit();
        }
 }
@@ -43,6 +44,7 @@ void BinaryControl::on_release()
        if(state)
        {
                state = false;
+               falling_edge = true;
                signal_release.emit();
        }
 }