summaryrefslogtreecommitdiff
path: root/client/control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/control.cc')
-rw-r--r--client/control.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/client/control.cc b/client/control.cc
index d634039..4b5d2fa 100644
--- a/client/control.cc
+++ b/client/control.cc
@@ -33,6 +33,9 @@ Control::Control()
recording = false;
muted = false;
cpr = "";
+
+ getfreeze = false;
+ getshot = false;
}
Control::~Control()
@@ -59,6 +62,7 @@ void Control::freeze()
{
mutex.lock();
frozen = true;
+ getfreeze = true;
mutex.unlock();
}
@@ -73,6 +77,7 @@ void Control::shoot()
{
mutex.lock();
frozen = false;
+ getshot = true;
mutex.unlock();
}
@@ -131,6 +136,24 @@ bool Control::isMuted()
return ismuted;
}
+bool Control::getShot()
+{
+ mutex.lock();
+ bool ret = getshot;
+ getshot = false;
+ mutex.unlock();
+ return ret;
+}
+
+bool Control::getFreeze()
+{
+ mutex.lock();
+ bool ret = getfreeze;
+ getfreeze = false;
+ mutex.unlock();
+ return ret;
+}
+
// Global control object
Control MIaV::control;