Changed button handler to work with GPIO pins on Rpi

This commit is contained in:
jancoow
2015-05-22 21:45:49 +02:00
parent 35884a2726
commit 3bf8280f79
2 changed files with 74 additions and 37 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ import javax.swing.JFrame;
import model.GameModel;
import view.GameView;
import control.GPIOListener;
import control.GameControl;
import control.LedHandler;
import control.button.ButtonHandler;
@@ -55,7 +56,7 @@ public class Window extends JFrame {
setContentPane(view);
//Create EventListeners
addKeyListener(bth);
new GPIOListener();
addKeyListener(jsh);
bth.addButtonListener(control);
jsh.addJoystickListener(control);