From 2dac7f3b8718c3b088f1a0fb8f316b3d2e067757 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 25 Jan 2022 00:08:46 -0500 Subject: [PATCH] add ability to switch octaves using numpad / and * --- src/gui/gui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 57a32c1c..a50b1ed8 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3314,6 +3314,12 @@ void FurnaceGUI::keyDown(SDL_Event& ev) { case SDLK_F8: stop(); break; + case SDLK_KP_DIVIDE: + if (--curOctave<-5) curOctave=-5; + break; + case SDLK_KP_MULTIPLY: + if (++curOctave>6) curOctave=6; + break; case SDLK_RETURN: if (e->isPlaying()) { stop();