Space to control special track. (#205)

Space to control special track, this enables you to use an ordinary pc keyboard as foot pedal!

Thanks @vale981, I squashed the two patches as it was a fixup :)
This commit is contained in:
vale981 2018-03-26 21:51:10 +02:00 committed by Harry van Haaren
parent ff34b33893
commit 3fd73ac58c

View file

@ -880,7 +880,17 @@ int Gui::keyboardHandler(int event)
}
}
// keyboard arrows to special key mapping
// keyboard arrows / space to special key mapping
if ( Fl::event_key( 32 ) && Fl::event_state( FL_SHIFT ) ) { //spacebar + shift
EventGridState e( gui->specialTrack, gui->specialScene, GridLogic::STATE_EMPTY );
writeToDspRingbuffer( &e );
return 1;
}
if ( Fl::event_key( 32 ) ) { //spacebar
EventGridEvent e( gui->specialTrack, gui->specialScene, true );
writeToDspRingbuffer( &e );
return 1;
}
if ( Fl::event_key( FL_Left ) ) {
EventGridSelectNewChosen e( gui->specialTrack-1, gui->specialScene );
writeToDspRingbuffer( &e );