Added option for PC/RASP

This commit is contained in:
2015-05-21 21:21:23 +02:00
parent f7175aa70a
commit 36cbc2b012
3 changed files with 23 additions and 5 deletions
+5
View File
@@ -5,6 +5,7 @@ import java.awt.event.KeyListener;
import java.util.ArrayList;
import java.util.List;
import main.Window;
import control.LedHandler;
public class ButtonHandler implements KeyListener{
@@ -71,6 +72,10 @@ public class ButtonHandler implements KeyListener{
case KeyEvent.VK_6:
buttonPress(buttons.get(6));
break;
case KeyEvent.VK_ESCAPE:
if(!Window.ON_RASP)
System.exit(0);
break;
}
}