kopia lustrzana https://github.com/jameshball/osci-render
Add space to pause and F11 to make visualiser fullscreen
rodzic
51f2ad6966
commit
64e7208fee
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue