Browse Source

Add key command for engine CPU timer.

tags/v1.1.5
Andrew Belt 5 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. - Automatically unzip update on Mac.
- Stop worker threads when engine is paused to save CPU. - Stop worker threads when engine is paused to save CPU.
- Hide menu and scrollbars when fullscreen. - Hide menu and scrollbars when fullscreen.
- Add key command (F3) for engine CPU meter.
- Core - Core
- Fix sustain pedal release bug when using polyphonic mode in MIDI-CV. - Fix sustain pedal release bug when using polyphonic mode in MIDI-CV.
- API - API


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

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


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


SampleRateItem* sampleRateItem = new SampleRateItem; 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); e.consume(this);
} }
} break; } break;
case GLFW_KEY_F3: {
if ((e.mods & RACK_MOD_MASK) == 0) {
settings::cpuMeter ^= true;
e.consume(this);
}
} break;
case GLFW_KEY_F11: { case GLFW_KEY_F11: {
if ((e.mods & RACK_MOD_MASK) == 0) { if ((e.mods & RACK_MOD_MASK) == 0) {
APP->window->setFullScreen(!APP->window->isFullScreen()); APP->window->setFullScreen(!APP->window->isFullScreen());


Loading…
Cancel
Save