mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 11:01:27 +00:00
add ability to switch octaves using numpad / and *
This commit is contained in:
parent
511b6ba0be
commit
2dac7f3b87
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue