Browse Source

Add `/` key as an alternative to shift key

Because the terminal listener is not able to detect shift keys. `/` works like a toggle - press once to simulate shift-down, press again to simulate shift-up.
master
Krisjanis Rijnieks 9 years ago
parent
commit
f7b1d74c2b
  1. 8
      src/Application/Application.cpp

8
src/Application/Application.cpp

@ -48,6 +48,10 @@ void Application::onKeyPressed(ofKeyEventArgs & args){
_shiftKeyDown = true;
break;
case '/':
_shiftKeyDown = !_shiftKeyDown;
break;
case '1':
_cmdManager.exec(
new ofx::piMapper::SetApplicationStateCmd(
@ -101,8 +105,10 @@ void Application::onKeyPressed(ofKeyEventArgs & args){
}
void Application::onKeyReleased(ofKeyEventArgs & args){
if(args.key == OF_KEY_SHIFT){
switch(args.key){
case OF_KEY_SHIFT:
_shiftKeyDown = false;
break;
}
}

Loading…
Cancel
Save