Add space to pause and F11 to make visualiser fullscreen

pull/278/head
James H Ball 2025-01-12 18:21:50 +00:00
rodzic 51f2ad6966
commit 64e7208fee
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -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;