Skip to content
Snippets Groups Projects
Commit 73fd25a7 authored by brutzman's avatar brutzman
Browse files

positive feedback response to user keyboard input

parent f62dfc5d
No related branches found
No related tags found
No related merge requests found
...@@ -67,12 +67,21 @@ public class PduListenerSaver ...@@ -67,12 +67,21 @@ public class PduListenerSaver
if (line.equalsIgnoreCase("p") && state == mystate.RUNNING) { if (line.equalsIgnoreCase("p") && state == mystate.RUNNING) {
recorder.stopPause(); recorder.stopPause();
state = mystate.PAUSED; state = mystate.PAUSED;
System.out.println("... now PAUSED");
}
else if (line.equalsIgnoreCase("p")) {
System.out.println("... still PAUSED");
} }
else if (line.equalsIgnoreCase("r") && state == mystate.PAUSED) { else if (line.equalsIgnoreCase("r") && state == mystate.PAUSED) {
recorder.startResume(); recorder.startResume();
state = mystate.RUNNING; state = mystate.RUNNING;
System.out.println("... now RUNNING");
}
else if (line.equalsIgnoreCase("r")) {
System.out.println("... still RUNNING");
} }
else if (line.equalsIgnoreCase("q")) { else if (line.equalsIgnoreCase("q")) {
System.out.println("... QUIT");
recorder.end(); recorder.end();
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment