|
|
@ -82,6 +82,12 @@ void Application::onKeyPressed(ofKeyEventArgs & args){ |
|
|
|
_cmdManager.exec(new ClearSurfacesCmd(getSurfaceManager())); |
|
|
|
} |
|
|
|
return; |
|
|
|
}else if(_keySequence == "rbt"){ |
|
|
|
reboot(); |
|
|
|
return; |
|
|
|
}else if(_keySequence == "sdn"){ |
|
|
|
shutdown(); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -128,14 +134,6 @@ void Application::onKeyPressed(ofKeyEventArgs & args){ |
|
|
|
case 'n': |
|
|
|
setNextPreset(); |
|
|
|
break; |
|
|
|
|
|
|
|
case 'x': |
|
|
|
reboot(); |
|
|
|
break; |
|
|
|
|
|
|
|
case 'c': |
|
|
|
shutdown(); |
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
// All the other keypresses are handled by the application state onKeyPressed
|
|
|
|