Browse Source

Add "sdn" and "rbt" as key sequences for shutdown and reboot on pi

master
Krisjanis Rijnieks 8 years ago
parent
commit
ce5b6957d1
  1. 14
      src/Application/Application.cpp

14
src/Application/Application.cpp

@ -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;
}
}
@ -129,14 +135,6 @@ void Application::onKeyPressed(ofKeyEventArgs & args){
setNextPreset();
break;
case 'x':
reboot();
break;
case 'c':
shutdown();
break;
default:
// All the other keypresses are handled by the application state onKeyPressed
_state->onKeyPressed(this, args);

Loading…
Cancel
Save