Browse Source

Add key command for engine CPU timer.

tags/v1.1.5
Andrew Belt 4 years ago
parent
commit
3d21a2a7b2
3 changed files with 9 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +2
    -1
      src/app/MenuBar.cpp
  3. +6
    -0
      src/app/Scene.cpp

+ 1
- 0
CHANGELOG.md View File

@@ -8,6 +8,7 @@ In this document, Mod is Ctrl on Windows/Linux and Cmd on Mac.
- Automatically unzip update on Mac.
- Stop worker threads when engine is paused to save CPU.
- Hide menu and scrollbars when fullscreen.
- Add key command (F3) for engine CPU meter.
- Core
- Fix sustain pedal release bug when using polyphonic mode in MIDI-CV.
- API


+ 2
- 1
src/app/MenuBar.cpp View File

@@ -477,7 +477,8 @@ struct EngineButton : MenuButton {

CpuMeterItem* cpuMeterItem = new CpuMeterItem;
cpuMeterItem->text = "CPU meter";
cpuMeterItem->rightText = CHECKMARK(settings::cpuMeter);
cpuMeterItem->rightText = "F3 ";
cpuMeterItem->rightText += CHECKMARK(settings::cpuMeter);
menu->addChild(cpuMeterItem);

SampleRateItem* sampleRateItem = new SampleRateItem;


+ 6
- 0
src/app/Scene.cpp View File

@@ -148,6 +148,12 @@ void Scene::onHoverKey(const event::HoverKey& e) {
e.consume(this);
}
} break;
case GLFW_KEY_F3: {
if ((e.mods & RACK_MOD_MASK) == 0) {
settings::cpuMeter ^= true;
e.consume(this);
}
} break;
case GLFW_KEY_F11: {
if ((e.mods & RACK_MOD_MASK) == 0) {
APP->window->setFullScreen(!APP->window->isFullScreen());


Loading…
Cancel
Save