diff --git a/applications/gui/src/screen.cpp b/applications/gui/src/screen.cpp index 533da2c4de6aa57531bd4568d38fc2ac836f47ea..d00d9df8229d99056b3ffd883f9f0a4bcf204d6f 100644 --- a/applications/gui/src/screen.cpp +++ b/applications/gui/src/screen.cpp @@ -503,6 +503,8 @@ bool ftl::gui::Screen::keyboardEvent(int key, int scancode, int action, int modi } else if (action == 1 && key == 'H') { swindow_->setVisible(false); //cwindow_->setVisible(false); + } else if (action == 1 && key == ' ') { + swindow_->togglePaused(); } else if (action == 1) { std::string combo = generateKeyComboStr(key, modifiers); diff --git a/applications/gui/src/src_window.hpp b/applications/gui/src/src_window.hpp index 83e9779b7e25ce8bd5b0a95bf7e3f4af11d34fb8..ce412c06da6df6318444fa3bf59c7dd560377aae 100644 --- a/applications/gui/src/src_window.hpp +++ b/applications/gui/src/src_window.hpp @@ -52,6 +52,7 @@ class SourceWindow : public nanogui::Window { inline std::vector<ftl::rgbd::FrameSet*> &getFramesets() { return framesets_; } inline void paused(bool p) { paused_ = p; } + inline void togglePaused() { paused_ = !paused_; } private: ftl::gui::Screen *screen_;