This commit is contained in:
Lucas Pleß 2012-05-15 22:58:20 +02:00
parent 931dab8e00
commit 7f2b98a554
2 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,7 @@ public class Statemachine {
public void reset() {
stateChangeCounter = 0;
currentState = state.IDLE;
onStateChanged();
}
public void handleInput(char input) {

View File

@ -32,6 +32,8 @@ public class SteuerungFrame extends JFrame implements StateChangeListener {
setDefaultCloseOperation(EXIT_ON_CLOSE);
setVisible(true);
machine.reset();
try {
mpd = new MPD("dampfradio.raum.chaostreff-dortmund.de", 6600);
player = mpd.getMPDPlayer();
@ -44,7 +46,6 @@ public class SteuerungFrame extends JFrame implements StateChangeListener {
return;
}
addKeyListener(new KeyAdapter() {
@Override
public void keyTyped(KeyEvent e) {