summaryrefslogtreecommitdiff
path: root/client/control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/control.cc')
-rw-r--r--client/control.cc19
1 files changed, 17 insertions, 2 deletions
diff --git a/client/control.cc b/client/control.cc
index 143e11c..92bd74c 100644
--- a/client/control.cc
+++ b/client/control.cc
@@ -87,6 +87,13 @@ void Control::stop()
mutex.unlock();
}
+void Control::takeScreenshot()
+{
+ mutex.lock();
+ screenshot = true;
+ mutex.unlock();
+}
+
bool Control::isFrozen()
{
bool isfrozen;
@@ -105,8 +112,16 @@ bool Control::isRecording()
return isrecording;
}
+bool Control::isScreenshot()
+{
+ bool isscreenshot;
+ mutex.lock();
+ isscreenshot = screenshot;
+ screenshot = false;
+ mutex.unlock();
+ return isscreenshot;
+}
+
// Global control object
Control MIaV::control;
-
-