mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
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:
parent
ff34b33893
commit
3fd73ac58c
1 changed files with 11 additions and 1 deletions
12
src/gui.cxx
12
src/gui.cxx
|
@ -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 ) ) {
|
if ( Fl::event_key( FL_Left ) ) {
|
||||||
EventGridSelectNewChosen e( gui->specialTrack-1, gui->specialScene );
|
EventGridSelectNewChosen e( gui->specialTrack-1, gui->specialScene );
|
||||||
writeToDspRingbuffer( &e );
|
writeToDspRingbuffer( &e );
|
||||||
|
|
Loading…
Add table
Reference in a new issue