From 64e7208feef69b45ffe8af82994f78970eaae81e Mon Sep 17 00:00:00 2001 From: James H Ball Date: Sun, 12 Jan 2025 18:21:50 +0000 Subject: [PATCH] Add space to pause and F11 to make visualiser fullscreen --- Source/visualiser/VisualiserComponent.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/visualiser/VisualiserComponent.cpp b/Source/visualiser/VisualiserComponent.cpp index aacc5a1..15cef8f 100644 --- a/Source/visualiser/VisualiserComponent.cpp +++ b/Source/visualiser/VisualiserComponent.cpp @@ -358,6 +358,14 @@ bool VisualiserComponent::keyPressed(const juce::KeyPress& key) { fullScreenCallback(FullScreenMode::MAIN_COMPONENT); } return true; + } else if (key.isKeyCode(juce::KeyPress::spaceKey)) { + setPaused(active); + return true; + } else if (key.isKeyCode(juce::KeyPress::F11Key)) { + // set fullscreen + juce::Component* component = juce::TopLevelWindow::getTopLevelWindow(0); + juce::Desktop::getInstance().setKioskModeComponent(component, true); + return true; } return false;